/* ═══════════════════════════════════════════════════════════════
   Invest in Tunisia (KR) — Charte institutionnelle (direction validée)
   Navy FIPA & blanc, rouge tunisien en accent. Police : Noto Sans KR.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg: #ffffff;
    --panel: #f4f6fa;
    --panel-2: #e8eef9;
    --panel-red: #fbe9e8;
    --line: #e3e8f0;
    --line-2: #c9d1de;
    --text: #10203f;
    --text-2: #3c4a66;
    --muted: #55627a;
    --dim: #8a97ad;
    --mn-off: #667085;      /* onglets au repos — 4,9:1 sur blanc */
    --navy: #1a2b5f;
    --navy-2: #10203f;
    --navy-soft: #c9d4ee;
    --navy-light: #9fb3e0;
    --red: #e70013;
    --red-2: #b8000f;
    --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    --container: 1440px;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 18px 50px rgba(16, 32, 63, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* « overflow-wrap: anywhere » (indispensable au coréen) coupait aussi les nombres :
   « +119,79 / 7 ». Les valeurs chiffrées restent insécables. */
.figure-value, .sx-figure b, .stat-value, .gd-head b, .lv-fig b, .bm-c, [data-count] {
    overflow-wrap: normal; word-break: keep-all; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0; color: var(--text); }
p { margin: 0 0 1.2rem; }
a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; color: var(--text); }
address { font-style: normal; }
small { font-size: .8em; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: 2rem; }
.site-main { min-height: 60vh; }

/* ── Typo helpers ─────────────────────────────────────────── */
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; font-weight: 700; }
.eyebrow.navy { color: var(--navy); }
.eyebrow.muted { color: var(--dim); }
.page-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin-bottom: 1.4rem; font-weight: 900; letter-spacing: -0.035em; }
.hl { color: var(--red); }
.section-title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: .8rem; font-weight: 900; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 34rem; margin: 0; font-size: .95rem; }
.lead { font-size: 1.15rem; color: var(--text-2); line-height: 1.75; max-width: 46rem; font-weight: 300; }
.link-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.arrow-link { color: var(--red); font-weight: 700; font-size: .92rem; }
.arrow-link.navy { color: var(--navy); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 1.9rem; font-size: .95rem; font-weight: 700; border: 2px solid var(--navy); color: var(--navy); background: transparent; border-radius: var(--radius-sm); cursor: pointer; transition: all .25s ease; line-height: 1.2; }
.btn:hover { background: var(--panel-2); color: var(--navy); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: .7rem 1.3rem; font-size: .85rem; }

/* ── Top bar + header ────────────────────────────────────── */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar-links { display: flex; gap: 1.1rem; }
.topbar-links .is-active { color: var(--text); font-weight: 500; }
.topbar-links > * { white-space: nowrap; }
@media (max-width: 760px) {
    .topbar-inner > span { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .topbar-links { gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
}
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
/* En-tête : drapeau + titre seuls (option A validée, sans logo FIPA) */
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-flag { height: 44px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 32, 63, .12); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-size: 1.375rem; font-weight: 900; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; color: var(--muted); white-space: nowrap; margin-top: .25rem; }
@media (max-width: 640px) {
    .brand { gap: .65rem; }
    .brand-flag { height: 30px; }
    .brand-title { font-size: 1.06rem; }
    .brand-sub { font-size: .6rem; margin-top: .1rem; }
}
.main-nav { display: none; align-items: center; gap: 1.7rem; }
.nav-link { white-space: nowrap; font-size: .92rem; font-weight: 500; color: var(--text); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.is-active { color: var(--navy); border-bottom-color: var(--red); }
.nav-cta { background: var(--red); color: #fff; padding: .7rem 1.3rem; border-radius: var(--radius-sm); font-weight: 700; border-bottom: 0; }
.nav-cta:hover, .nav-cta.is-active { background: var(--red-2); color: #fff; border-bottom: 0; }
.nav-item { position: relative; }
/* Menus déroulants (maquette D, 22/09) : même disposition, mais pictogrammes cerclés d'un trait fin
   comme sur les cartes secteur (rempli marine au survol), hairlines entre les lignes, anglais discret,
   ombre légère. Un pont invisible relie l'onglet au panneau. */
.nav-menu { position: absolute; top: calc(100% + .7rem); left: -1rem; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .6rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; box-shadow: 0 16px 36px -16px rgba(16, 32, 63, .22); }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.8rem; height: .8rem; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu-link { display: flex; align-items: center; gap: .9rem; padding: .55rem .5rem; color: var(--text); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.nav-menu-link + .nav-menu-link { border-top: 1px solid var(--line); }
.nav-menu-link small { display: block; font-size: .72rem; font-weight: 400; letter-spacing: 0; color: var(--dim); white-space: normal; }
.nav-menu-link:hover, .nav-menu-link:focus-visible { color: var(--navy); }
.nav-menu-link .icon { width: 16px; height: 16px; box-sizing: content-box; padding: 7px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--navy); flex-shrink: 0; transition: background .2s, border-color .2s, color .2s; }
.nav-menu-link:hover .icon, .nav-menu-link:focus-visible .icon, .nav-menu-head .icon { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav-search { position: relative; display: none; }
.nav-search input { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: .5rem 2.2rem .5rem .9rem; font-size: .82rem; width: 150px; font-family: var(--font); border-radius: var(--radius-sm); transition: width .3s ease, border-color .2s; }
.nav-search input:focus { outline: none; border-color: var(--navy); width: 210px; }
.nav-search button { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: .2rem; }
.hd-search { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -8px -6px 0; border-radius: 10px; color: var(--text); }
.hd-search:active { background: var(--panel); }
/* La navigation de bureau se déployait dès 1024 px : tous les libellés passaient sur deux
   lignes et la recherche ne réapparaissait qu'à 1240 px — donc absente sur iPad paysage.
   Elle attend désormais 1180 px, et la recherche arrive en même temps qu'elle. */
@media (min-width: 1180px) { .main-nav { display: flex; } .nav-search { display: block; } .hd-search { display: none; } }

/* ── Flash ────────────────────────────────────────────────── */
.flash-stack { position: fixed; top: 6rem; right: 1rem; z-index: 120; width: min(92vw, 28rem); display: grid; gap: .6rem; }
.flash { padding: .8rem 1rem; font-size: .9rem; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.flash-success { border-color: #34d399; color: #065f46; }
.flash-error { border-color: #f87171; color: #991b1b; }

/* ── Home hero : voir le bloc « Hero d'accueil — 세 대륙의 관문 (gw-*) » en fin de fichier ── */

/* ── Navy stats band ──────────────────────────────────────── */
.stats-band { background: var(--navy); color: #fff; padding-block: 3.2rem 5.5rem; position: relative; overflow: hidden; }
.stats-band .emblem { position: absolute; right: 2rem; top: -2rem; width: 300px; opacity: .07; filter: brightness(0) invert(1); pointer-events: none; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: end; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) 260px; } }
.stat { display: flex; flex-direction: column; gap: .35rem; border-top: 2px solid var(--red); padding-top: .9rem; }
.stat-value { font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: .88rem; color: var(--navy-soft); }
.stat-detail { font-size: .74rem; color: var(--navy-light); line-height: 1.5; }
.stat-source { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.08); padding: .8rem .9rem; border-radius: 6px; font-size: .76rem; color: var(--navy-soft); line-height: 1.5; grid-column: 1 / -1; }
.stat-source img { height: 36px; width: auto; }
.stat-source strong { color: #fff; }
@media (min-width: 900px) { .stat-source { grid-column: auto; } }

/* ── Sector strip (F) ─────────────────────────────────────── */
.sector-strip { margin-top: -3.2rem; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.8rem; display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
@media (min-width: 720px) { .sector-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sector-strip { grid-template-columns: 190px repeat(4, minmax(0, 1fr)); } }
.sector-strip-title { display: flex; flex-direction: column; gap: .1rem; padding-right: 1rem; }
@media (min-width: 1100px) { .sector-strip-title { border-right: 1px solid var(--line); } }
.sector-strip-title strong { font-size: 1.15rem; font-weight: 800; }
.sector-strip-title span { font-size: .76rem; color: var(--muted); }
.sector-strip-link { display: flex; align-items: center; gap: .85rem; color: var(--text); }
.sector-strip-link .icon-box { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; transition: background .2s, transform .2s; }
.sector-strip-link:hover .icon-box { background: var(--red); transform: translateY(-2px); }
.sector-strip-link strong { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.sector-strip-link span { display: block; font-size: .76rem; color: var(--muted); }
.sector-strip-link em { font-style: normal; font-weight: 700; color: var(--red); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding-block: 4.5rem; }
.section-tight { padding-block: 3rem; }
.section-panel { background: var(--panel); }
.section-border { border-top: 1px solid var(--line); }

/* ── Sector cards with photo ─────────────────────────────── */
.sector-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sector-grid { grid-template-columns: repeat(4, 1fr); } .sector-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.sector-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .3s ease, box-shadow .3s ease; }
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.sector-card-media { position: relative; height: 170px; background: var(--panel-2); overflow: hidden; }
.sector-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sector-card:hover .sector-card-media img { transform: scale(1.05); }
.sector-card-media .sector-card-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.sector-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.sector-card-num { font-size: .72rem; letter-spacing: .2em; color: var(--dim); font-weight: 700; }
.sector-card-name { font-size: 1.45rem; font-weight: 800; }
.sector-card-en { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sector-card-summary { color: var(--muted); font-size: .9rem; line-height: 1.65; flex: 1; margin-top: .3rem; }
.sector-card-more { margin-top: .8rem; color: var(--red); font-weight: 700; font-size: .9rem; }

/* ── Generic cards ────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 1.7rem 1.6rem; transition: box-shadow .3s ease, transform .3s ease; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.card-icon { display: inline-flex; color: var(--navy); margin-bottom: .9rem; }
.card-kicker { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: .5rem; font-weight: 700; }
.card-title { font-size: 1.2rem; margin-bottom: .6rem; font-weight: 700; }
.card-text { color: var(--muted); font-size: .92rem; line-height: 1.7; margin: 0; }
a.card { display: block; color: var(--text); }
a.card .card-more { display: inline-block; margin-top: 1rem; font-size: .88rem; font-weight: 700; color: var(--red); }
.card-logo { max-height: 56px; width: auto; margin-bottom: 1rem; }
.card-logo.tia-logo { filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(2000%) hue-rotate(205deg) brightness(90%); }

/* ── Reasons ──────────────────────────────────────────────── */
.reasons-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .reasons-layout { grid-template-columns: 360px minmax(0, 1fr); gap: 4rem; } }
.reason-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reason-grid { grid-template-columns: repeat(3, 1fr); } }
.reason-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; color: var(--text); display: flex; flex-direction: column; gap: .4rem; transition: box-shadow .3s, transform .3s; }
.reason-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.reason-card h3 { font-size: 1.1rem; font-weight: 700; }
.reason-card p { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 0; flex: 1; }
.reason-card .icon { color: var(--navy); }

/* ── Guide / platform panels (F) ─────────────────────────── */
/* Bento guide / plateforme (accueil) : deux grandes tuiles navy et rouge */
.gp-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) { .gp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gp-tile { position: relative; overflow: hidden; isolation: isolate; border-radius: 10px; padding: 2.1rem 2.2rem 2.2rem; color: #fff; min-height: 280px;
           display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; gap: .6rem 1.5rem; align-items: end; }
.gp-guide { background: var(--navy); }
.gp-platform { background: var(--red); }
.gp-tile .gp-wm { position: absolute; right: -34px; top: -46px; width: 250px; height: 250px; color: #fff; opacity: .09; z-index: -1; transition: transform .8s cubic-bezier(.2,.75,.1,1); }
.gp-tile:hover .gp-wm { transform: rotate(-8deg) scale(1.06); }
.gp-tile .eyebrow { grid-column: 1 / -1; align-self: start; color: rgba(255,255,255,.72); margin: 0; }
.gp-body h2 { color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.3rem); font-weight: 900; letter-spacing: -.03em; margin: 0 0 .5rem; }
.gp-body p { color: rgba(255,255,255,.85); font-size: .95rem; max-width: 30rem; margin: 0; }
.gp-big { text-align: right; }
.gp-big b { display: block; color: #fff; font-size: clamp(3.4rem, 5.4vw, 4.8rem); font-weight: 900; line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.gp-big span { font-size: .82rem; color: rgba(255,255,255,.8); }
.gp-btn { grid-column: 1 / -1; justify-self: start; margin-top: .8rem; background: #fff; border-color: #fff; }
.gp-guide .gp-btn { color: var(--navy); }
.gp-platform .gp-btn { color: var(--red); }
.gp-guide .gp-btn:hover { background: var(--panel-2); border-color: var(--panel-2); color: var(--navy); }
.gp-platform .gp-btn:hover { background: var(--panel-red); border-color: var(--panel-red); color: var(--red-2); }
.gp-btn:focus-visible { outline: 3px solid #ffc861; outline-offset: 3px; }

/* ── Figures ──────────────────────────────────────────────── */
.figure-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .figure-grid { grid-template-columns: repeat(4, 1fr); } .figure-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .figure-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } .figure-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.figure { background: #fff; padding: 1.6rem 1.4rem; }
.figure-value { display: block; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 900; color: var(--navy); line-height: 1.1; margin-bottom: .4rem; letter-spacing: -0.02em; }
.figure-label { display: block; font-size: .88rem; color: var(--text); font-weight: 500; line-height: 1.45; }
.figure-detail { display: block; font-size: .76rem; color: var(--muted); margin-top: .3rem; line-height: 1.5; }
.blk-source, .source-line { font-size: .76rem; color: var(--muted); margin-top: .7rem; }

/* ── Detail pages ─────────────────────────────────────────── */
.page-hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel) 0%, #fff 100%); }
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid.has-media { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; } }
.page-hero-media { border-radius: var(--radius); overflow: hidden; height: 300px; }
@media (min-width: 1024px) { .page-hero-media { height: 420px; } }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-icon { color: var(--navy); margin-bottom: 1rem; }
.hero-logo { max-height: 72px; width: auto; margin-bottom: 1.2rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .74rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span::before { content: '/'; margin-right: .5rem; color: var(--line-2); }
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-block: 3.5rem; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 4.5rem; } .detail-layout.no-aside { grid-template-columns: minmax(0, 1fr); } }
.detail-body { min-width: 0; }
.detail-aside { display: flex; flex-direction: column; gap: 1.2rem; }
@media (min-width: 1024px) { .detail-aside { position: sticky; top: 6.5rem; align-self: start; } }
.aside-box { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 1.4rem 1.4rem; }
.aside-box h4, .aside-box .aside-title { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; font-weight: 700; }
.aside-box p { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.aside-box .pm-name { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: .1rem; }
.aside-box .pm-role { font-size: .8rem; color: var(--muted); margin-bottom: .8rem; }
.aside-box a.line { display: block; font-size: .92rem; color: var(--text); padding: .3rem 0; border-bottom: 1px solid var(--line); }
.aside-box a.line:hover { color: var(--red); }
.aside-nav a { display: block; padding: .45rem 0; font-size: .9rem; border-bottom: 1px solid var(--line); color: var(--text-2); }
.aside-nav a:hover { color: var(--red); }
.toc a { display: block; padding: .3rem 0; font-size: .88rem; color: var(--text-2); }
.toc a:hover { color: var(--red); }

.blk-heading { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 3rem 0 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; font-weight: 900; }
.blk-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.blk-lead { color: var(--text-2); font-size: 1.05rem; margin-bottom: 1.6rem; font-weight: 300; }
.blk-subheading { font-size: 1.2rem; margin: 1.8rem 0 .8rem; font-weight: 700; }
.blk-p { color: var(--text-2); font-size: 1rem; line-height: 1.8; max-width: 46rem; }
.bullets { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.5rem; max-width: 48rem; }
.bullets li { position: relative; padding-left: 1.3rem; color: var(--text-2); line-height: 1.65; }
.bullets li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 2px; background: var(--red); }
.bullets.small li { font-size: .88rem; color: var(--muted); }
.bullets-cols { max-width: none; }
@media (min-width: 900px) { .bullets-cols { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.blk-steps { list-style: none; display: grid; gap: .8rem; margin: 1.4rem 0 2rem; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.step-num { font-size: 2rem; font-weight: 900; color: var(--red); line-height: 1; }
.step-title { font-size: 1.1rem; margin-bottom: .4rem; font-weight: 700; }
.step-text { color: var(--muted); font-size: .92rem; margin: 0; }
.blk-note { border-left: 3px solid var(--red); background: var(--panel-red); padding: 1.1rem 1.4rem; margin: 1.6rem 0; max-width: 48rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.blk-note strong { display: block; margin-bottom: .3rem; }
.blk-note p { margin: 0; font-size: .92rem; color: var(--text-2); }
.blk-note.tone-info { border-color: var(--navy); background: var(--panel-2); }
.blk-quote { border-left: 3px solid var(--navy); padding-left: 1.4rem; margin: 2rem 0; font-size: 1.15rem; color: var(--text-2); max-width: 44rem; font-weight: 300; }
.blk-quote cite { display: block; font-style: normal; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .7rem; font-weight: 700; }
.blk-cards, .blk-figures, .blk-table, .blk-contacts, .blk-list, .blk-columns, .blk-links, .pt { margin: 1.6rem 0 2.2rem; }
/* Fiche partenaire « carte de visite » (maquette C, mockups/partners/) — s'adapte à sa colonne (container queries) */
.pt { container-type: inline-size; }
.pt-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; align-items: start; }
@container (min-width: 760px) { .pt-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem 2.4rem; } }
@container (min-width: 1080px) { .pt-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 2rem clamp(3rem, 5cqi, 4.5rem); } }
.pt-main { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.pt-kicker { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; margin: 0 0 .35rem; }
.pt-name { font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 900; text-wrap: balance; }
.pt-en { font-size: .86rem; color: var(--muted); margin: .3rem 0 0; }
.pt-text { color: var(--text-2); font-size: 1rem; line-height: 1.8; max-width: 44rem; margin: 0; }
.pt-dl { margin: .3rem 0 0; display: grid; grid-template-columns: 1fr; column-gap: 1.8rem; }
@container (min-width: 700px) { .pt-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-dl > div:nth-child(2) { border-top-width: 2px; border-top-color: var(--navy); } }
@container (min-width: 760px) and (max-width: 1079px) { .pt-dl { grid-template-columns: 1fr; } .pt-dl > div:nth-child(2) { border-top-width: 1px; border-top-color: var(--line-2); } }
.pt-dl > div { border-top: 1px solid var(--line-2); padding-block: .75rem 1rem; }
.pt-dl > div:first-child { border-top: 2px solid var(--navy); }
.pt-dl dt { font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: .2rem; }
.pt-dl dd { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.7; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 50px rgba(16, 32, 63, .11); overflow: hidden; max-width: 460px; }
@container (min-width: 760px) { .pt-card { position: sticky; top: 6.5rem; max-width: none; } }
.pt-logo { height: 132px; padding: 1.4rem 2.2rem; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f8f9fc 100%); }
.pt-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pt-logo img[src*="/tia."] { filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(2000%) hue-rotate(205deg) brightness(90%); } /* logo TIA blanc → navy */
.pt-id { padding: 1rem 1.25rem .3rem; line-height: 1.35; }
.pt-id b { display: block; font-size: .95rem; }
.pt-id span { font-size: .78rem; color: var(--muted); }
.pt-actions { list-style: none; margin: 0; padding: .35rem .6rem .6rem; }
.pt-actions a, .pt-actions button { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: .75rem; align-items: center; padding: .6rem; border-radius: 10px; color: var(--text); font: inherit; background: none; border: 0; text-align: left; cursor: pointer; transition: background .2s; }
.pt-actions a:hover, .pt-actions button:hover { background: var(--panel); color: var(--text); }
.pt-actions a:focus-visible, .pt-actions button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.pt-i { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--navy); }
.pt-i-linkedin { background: #0a66c2; color: #fff; }
.pt-i-facebook { background: #1877f2; color: #fff; }
.pt-i-x, .pt-i-youtube { background: var(--navy-2); color: #fff; }
.pt-i-instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); color: #fff; }
.pt-t { min-width: 0; }
.pt-t b { display: block; font-size: .88rem; line-height: 1.3; }
.pt-t span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.pt-go { color: var(--dim); display: flex; }
.pt-actions a:hover .pt-go { color: var(--red); }
.pt-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); background: var(--panel); }
.pt-facts > div { padding: .8rem .5rem .75rem; text-align: center; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .25rem; }
.pt-facts > div:last-child { border-right: 0; }
.pt-fv { font-size: 1.25rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.pt-fl { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.pt-hubs { display: flex; flex-wrap: wrap; gap: .35rem; padding: .75rem 1.25rem 1rem; border-top: 1px solid var(--line); }
.pt-hubs em { font-style: normal; font-size: .7rem; color: var(--dim); width: 100%; letter-spacing: .06em; }
.pt-hubs span { font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--panel-2); border-radius: 999px; padding: .1rem .6rem; }
.blk-columns { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .blk-columns { grid-template-columns: 1fr 1fr; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
th, td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); background: var(--panel); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.contact-lines { list-style: none; display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); margin-top: .7rem; }
.contact-lines a { color: var(--text); }
.source-note { margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.source-note-label { display: block; margin-top: 0; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: .4rem; font-weight: 700; }
.source-note ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.source-note a { font-size: .85rem; color: var(--muted); }

/* ── Sector detail ────────────────────────────────────────── */
.kicker-line { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--red); font-weight: 700; margin-bottom: 1.2rem; }
.value-chain { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.8rem; }
.value-chain span { border: 1px solid var(--navy); color: var(--navy); padding: .4rem .9rem; font-size: .8rem; font-weight: 500; border-radius: 999px; }
.value-chain span + span::before { content: '→'; color: var(--dim); margin-right: .6rem; }
.strength-list { display: grid; gap: 1.1rem; margin: 1.4rem 0 1.8rem; }
.strength { border-left: 3px solid var(--red); padding-left: 1.1rem; }
.strength h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: .25rem; }
.strength p { color: var(--muted); font-size: .92rem; margin: 0; }
.champion-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.4rem 0 1.8rem; }
@media (min-width: 900px) { .champion-grid { grid-template-columns: 1fr 1fr; } }
.champion { background: var(--panel); border-radius: var(--radius); padding: 1.4rem 1.4rem; }
.champion h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: .5rem; font-weight: 700; }
.champion p { color: var(--text-2); font-size: .9rem; margin: 0; line-height: 1.65; }
.reason-block { margin: 2.2rem 0; }
.reason-block > h3 { font-size: 1.45rem; margin-bottom: .6rem; font-weight: 800; }
.reason-block > p { color: var(--text-2); max-width: 48rem; }
.reason-items { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-top: 1.2rem; }
@media (min-width: 900px) { .reason-items { grid-template-columns: 1fr 1fr; } }
.reason-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: #fff; }
.reason-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.reason-item p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.65; }
.more-sectors { border-top: 1px solid var(--line); background: var(--panel); padding-block: 3.5rem; }

/* ── News ─────────────────────────────────────────────────── */
.news-featured-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1024px) { .news-featured-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.news-featured { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy); color: #fff; }
.news-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-featured-body { position: relative; padding: 2.2rem; background: linear-gradient(180deg, rgba(16,32,63,0) 0%, rgba(16,32,63,.92) 60%); display: flex; flex-direction: column; gap: .6rem; }
.news-featured-body .news-meta { color: var(--navy-light); }
.news-featured-body h3 { color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.35; }
.news-featured:hover h3 { text-decoration: underline; }
.news-side { display: flex; flex-direction: column; gap: 1.25rem; }
.news-side-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); flex: 1; min-height: 130px; transition: box-shadow .3s; }
.news-side-card:hover { box-shadow: var(--shadow); color: var(--text); }
.news-side-card .thumb { background: var(--panel-2); }
.news-side-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-side-card .body { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; justify-content: center; }
.news-side-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.news-meta { font-size: .74rem; letter-spacing: .06em; color: var(--muted); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.news-meta .src { color: var(--red); font-weight: 700; }
.news-list { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news-list { grid-template-columns: repeat(3, 1fr); } }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: box-shadow .3s, transform .3s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.news-card .thumb { height: 180px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.news-card p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.news-body { max-width: 48rem; font-size: 1.02rem; line-height: 1.85; color: var(--text-2); }
.news-body p { margin-bottom: 1.3rem; }
.news-body b, .news-body strong { font-weight: 700; color: var(--text); }
.news-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.news-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.news-hero-video { margin-bottom: 2rem; }
.news-hero-video .vd-cover { font-size: clamp(.85rem, 1.6vw, 1.1rem); }
/* La photo remplit toujours son cadre 15:8, même déposée plus petite que lui (fill ne l'agrandit pas). */
.news-hero-img img { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; }
.tag { display: inline-block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: .2rem .55rem; border-radius: 999px; font-weight: 700; }
.pagination { display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; font-size: .85rem; font-weight: 700; }

/* ── Korea band ───────────────────────────────────────────── */
.korea-band { background: var(--navy-2); color: #fff; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .korea-band { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.korea-text { padding: 2.6rem 2.8rem; display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.korea-text .eyebrow { color: #ff8a93; margin-bottom: 0; }
.korea-text h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 900; word-break: keep-all; text-wrap: balance; }
.korea-text p { color: var(--navy-soft); font-size: .95rem; margin: 0; max-width: 38rem; line-height: 1.8; }
.korea-milestones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: .4rem 0 .3rem; border-top: 1px solid rgba(255,255,255,.18); max-width: 38rem; }
.korea-milestones > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: .8rem .8rem 0 0; }
.korea-milestones dt { font-size: .72rem; color: var(--navy-light); line-height: 1.35; }
.korea-milestones dd { margin: 0 0 .1rem; font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .korea-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.korea-doors { margin: 0; padding: 2rem 2.4rem 1.6rem 0; }
.korea-doors img { width: 100%; height: auto; display: block; }
.korea-doors figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .7rem; font-size: .74rem; color: var(--navy-light); text-align: center; letter-spacing: .02em; }
@media (max-width: 1023px) { .korea-doors { order: -1; padding: 1.6rem 1.3rem 0; } }
/* Animation du bandeau (2026-09-20, maquette mockups/korea-doors A + C) : les portes se rejoignent,
   un fil de lumière se trace entre elles, puis le trait rouge allume les jalons. Déclenchée par site.js
   (.kd-go) ; sans JS ou avec « réduire les animations », état final directement. */
.korea-milestones:has(> div:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 40rem; }
/* Téléphone : une seule ligne qu'on fait glisser (maquette M2 de mockups/korea-doors-mobile, validée le 2026-09-20) ;
   un fondu à droite signale la suite. Le trait est découpé par jalon et site.js fait glisser la bande pendant l'animation. */
@media (max-width: 560px) {
    .korea-milestones:has(> div:nth-child(5)) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        border-top: 0; margin-right: -1.3rem; padding: 7px 1.3rem 0 0;
        -webkit-mask: linear-gradient(90deg, #000 82%, transparent); mask: linear-gradient(90deg, #000 82%, transparent); }
    .korea-milestones:has(> div:nth-child(5))::-webkit-scrollbar { display: none; }
    .korea-milestones:has(> div:nth-child(5)) > div { flex: 0 0 40%; scroll-snap-align: start; padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.18); }
    .korea-milestones:has(> div:nth-child(5)) dt { font-size: .76rem; }
}
.kd-stage { position: relative; aspect-ratio: 1400 / 605; }
.kd-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.kd-l { clip-path: inset(0 50.7% 0 0); }
.kd-r { clip-path: inset(0 0 0 50.7%); }
.kd-thread { position: absolute; left: 50%; top: 8%; bottom: 8%; width: 2px; margin-left: -1px; background: linear-gradient(#fff0, #fff, #ff8a93, #fff0); box-shadow: 0 0 18px 3px rgba(255,138,147,.55); }
@media (prefers-reduced-motion: no-preference) {
    .js [data-kd] .kd-stage > img { opacity: 0; transition: transform 1.6s cubic-bezier(.2,.7,.1,1), opacity 1.2s; }
    .js [data-kd] .kd-l { transform: translateX(-22%); }
    .js [data-kd] .kd-r { transform: translateX(22%); }
    .js [data-kd] .kd-thread { transform: scaleY(0); transition: transform .9s 1.3s ease-out; }
    .js [data-kd] .korea-doors figcaption span { opacity: 0; transition: opacity .6s 1.7s; }
    .js [data-kd] .korea-milestones { border-top-color: rgba(255,255,255,.18); }
    .js [data-kd] .korea-milestones::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, #ff8a93, #fff); transform: scaleX(0); transform-origin: 0 50%; transition: transform 3.8s linear 1.5s; }
    .js [data-kd] .korea-milestones { position: relative; }
    .js [data-kd] .korea-milestones > div { position: relative; }
    .js [data-kd] .korea-milestones > div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--navy-2); border: 2px solid rgba(255,255,255,.35); transition: .4s; }
    .js [data-kd] .korea-milestones :is(dd, dt) { opacity: .28; transition: opacity .5s; }
    .js [data-kd].kd-go .kd-stage > img { opacity: 1; transform: none; }
    .js [data-kd].kd-go .kd-thread { transform: none; }
    .js [data-kd].kd-go .korea-doors figcaption span { opacity: 1; }
    .js [data-kd].kd-go .korea-milestones::before { transform: none; }
    .js [data-kd].kd-go .korea-milestones > div::before { background: #ff8a93; border-color: #ff8a93; box-shadow: 0 0 0 5px rgba(255,138,147,.2); }
    .js [data-kd].kd-go .korea-milestones :is(dd, dt) { opacity: 1; }
    .js [data-kd].kd-go .korea-milestones > div:nth-child(1) :is(dd, dt), .js [data-kd].kd-go .korea-milestones > div:nth-child(1)::before { transition-delay: 1.5s; }
    .js [data-kd].kd-go .korea-milestones > div:nth-child(2) :is(dd, dt), .js [data-kd].kd-go .korea-milestones > div:nth-child(2)::before { transition-delay: 2.3s; }
    .js [data-kd].kd-go .korea-milestones > div:nth-child(3) :is(dd, dt), .js [data-kd].kd-go .korea-milestones > div:nth-child(3)::before { transition-delay: 3.1s; }
    .js [data-kd].kd-go .korea-milestones > div:nth-child(4) :is(dd, dt), .js [data-kd].kd-go .korea-milestones > div:nth-child(4)::before { transition-delay: 3.9s; }
    .js [data-kd].kd-go .korea-milestones > div:nth-child(5) :is(dd, dt), .js [data-kd].kd-go .korea-milestones > div:nth-child(5)::before { transition-delay: 4.7s; }
    @media (max-width: 560px) {
        .js [data-kd] .korea-milestones::before { display: none; }
        .js [data-kd] .korea-milestones > div::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #ff8a93;
            transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s linear; }
        .js [data-kd].kd-go .korea-milestones > div::after { transform: none; }
        .js [data-kd].kd-go .korea-milestones > div:nth-child(1)::after { transition-delay: 1.5s; }
        .js [data-kd].kd-go .korea-milestones > div:nth-child(2)::after { transition-delay: 2.3s; }
        .js [data-kd].kd-go .korea-milestones > div:nth-child(3)::after { transition-delay: 3.1s; }
        .js [data-kd].kd-go .korea-milestones > div:nth-child(4)::after { transition-delay: 3.9s; }
        .js [data-kd].kd-go .korea-milestones > div:nth-child(5)::after { transition-delay: 4.7s; }
    }
}
.play { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band { background: var(--panel); border-top: 1px solid var(--line); }
.cta-inner { display: grid; gap: 2rem; padding-block: 4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1.4fr .6fr; } }
.cta-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: .8rem; font-weight: 900; }
.cta-text { color: var(--muted); max-width: 40rem; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; }
@media (min-width: 1024px) { .cta-actions { align-items: flex-end; } }

/* ── Contact form ─────────────────────────────────────────── */
.ct-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-block: 3.5rem; }
@media (min-width: 1024px) { .ct-grid { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; } }
.ct-form-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); }
.ct-form-card h2 { font-size: 1.5rem; margin-bottom: .4rem; font-weight: 900; }
.ct-form-sub { color: var(--muted); font-size: .85rem; margin-bottom: 1.8rem; }
.ct-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ct-row { grid-template-columns: 1fr 1fr; } }
.ct-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.ct-field label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ct-field input, .ct-field select, .ct-field textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: .8rem 1rem; font-family: var(--font); font-size: .95rem; border-radius: var(--radius-sm); transition: border-color .2s, background .2s; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px var(--panel-2); }
.ct-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ct-field .err, .err { color: var(--red); font-size: .8rem; }
.ct-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: .8rem 0 1.4rem; }
.ct-consent input { margin-top: .3rem; accent-color: var(--red); }
.ct-consents { border: 0; padding: 0; margin: .8rem 0 1.4rem; }
.ct-consents legend { font-size: .82rem; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: .2rem; }
.ct-consents legend a { text-decoration: underline; }
.ct-consents .ct-consent { margin: .6rem 0 0; }
.ct-consent-terms { display: block; margin-top: .2rem; font-size: .76rem; line-height: 1.55; }
.ct-consent-err { color: var(--red); font-size: .8rem; margin: .3rem 0 0 1.6rem; }
.ct-details { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.ct-detail-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .3rem; font-weight: 700; }
.ct-detail-value { color: var(--text-2); margin: 0; font-size: .95rem; line-height: 1.65; }
.ct-detail-value a { display: block; color: var(--navy); }

/* ── Search ───────────────────────────────────────────────── */
.search-form { display: flex; gap: .6rem; max-width: 40rem; margin-bottom: 2.5rem; }
.search-form input { flex: 1; background: #fff; border: 1px solid var(--line-2); color: var(--text); padding: .9rem 1.1rem; font-family: var(--font); font-size: 1rem; border-radius: var(--radius-sm); }
.result-group { margin-bottom: 2.5rem; }
.result-group h2 { font-size: 1.2rem; margin-bottom: .8rem; color: var(--muted); font-weight: 700; }
.result-list { list-style: none; display: grid; gap: .6rem; }
.result-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--text); }
.result-list a:hover { box-shadow: var(--shadow); }
.result-list strong { display: block; font-weight: 700; font-size: 1.05rem; }
.result-list span { font-size: .88rem; color: var(--muted); }

/* ── Footer (GTAI style) ──────────────────────────────────── */
.site-footer { margin-top: 4.5rem; border-top: 1px solid var(--line); background: #fff; }
.ft-grid { display: grid; gap: 2.2rem; padding-block: 3.5rem 2rem; grid-template-columns: 1fr; }
/* Maquette A « six colonnes » validée (mockups/footer/) : identité d'abord, puis 4 colonnes de liens de hauteur voisine */
@media (min-width: 720px) and (max-width: 1179.98px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid .ft-brand-col { grid-column: 1 / -1; } }
/* Les six colonnes arrivent en même temps que la navigation de bureau (1180 px) :
   entre 1180 et 1199 px on avait la navigation de bureau et un pied de page à deux
   colonnes, donc ni volets repliés ni maquette complète. */
@media (min-width: 1180px) {
    .ft-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 2.2rem; align-items: start; }
    .ft-grid .ft-brand-col { grid-column: auto; padding-right: 1.6rem; border-right: 1px solid var(--line); }
    .ft-grid .ft-embassy-name strong { white-space: normal; }
    .ft-grid .ft-partners { gap: 1.4rem; }
    .ft-grid .ft-partners img { height: 52px; }
    .ft-grid .ft-partners .fipa-logo { height: 64px; }
    .ft-grid .ft-partners .tkcc-logo { height: 46px; }
}
.ft-col { display: flex; flex-direction: column; gap: .7rem; }
.ft-heading { font-size: 1.05rem; font-weight: 800; margin-bottom: .3rem; letter-spacing: .01em; }
.ft-heading-gap { margin-top: .9rem; }
.ft-col a { font-size: .95rem; color: var(--text); display: inline-flex; align-items: center; gap: .35rem; }
.ft-col a:hover { color: var(--red); }
/* Lien du portail des produits tunisiens (/export/), dernière ligne de la colonne « 왜 튀니지인가 » */
.ft-col a.ft-portal-new { font-weight: 800; color: var(--navy, #1a2b5f); }
.ft-col a.ft-portal-new::before { content: "NEW"; font: 800 .62rem/1 "JetBrains Mono", ui-monospace, monospace; background: #e70013; color: #fff; border-radius: 4px; padding: .2rem .35rem; }
.ft-col a.ft-portal-new:hover { color: var(--red); }
.ft-col a .ext { color: var(--text); opacity: .8; }
.ft-contact { font-size: .84rem; color: var(--muted); line-height: 1.6; margin-top: .4rem; }
.ft-contact strong { color: var(--text); font-weight: 700; }
.ft-contact a { font-size: .84rem !important; display: inline !important; }
.ft-brand-col { align-items: flex-start; gap: 1.3rem; }
.ft-supported { display: flex; flex-direction: column; gap: .6rem; }
.ft-supported-label { font-size: .78rem; color: var(--muted); }
.ft-embassy { display: flex; align-items: center; gap: .9rem; }
.ft-embassy img { height: 64px; width: auto; }
.ft-embassy-name { display: flex; flex-direction: column; line-height: 1.3; }
.ft-embassy-name strong { font-size: .92rem; font-weight: 700; white-space: nowrap; }
.ft-embassy-name .ft-embassy-ko { font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-top: .3rem; }
.ft-embassy-social { display: flex; gap: .5rem; }
.ft-embassy-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.ft-embassy-social a:hover { background: var(--red); color: #fff; }
.ft-note { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 0; }
.ft-partners { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem; margin-top: .3rem; }
.ft-partners img { height: 70px; width: auto; }
.ft-partners .fipa-logo { height: 86px; }
.ft-partners .tkcc-logo { height: 60px; border-radius: 8px; }
.ft-partners .tia-logo { filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(2000%) hue-rotate(205deg) brightness(90%); }
.ft-bottom { border-top: 1px solid var(--line); }
.ft-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; font-size: .86rem; }
.ft-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.ft-legal a { color: var(--text); }
.ft-legal a.ft-privacy { font-weight: 700; color: var(--navy); } /* 개인정보 보호법 시행령 제31조 : mise en évidence */
.ft-imprint { border-top: 1px solid var(--line); padding-block: 1.1rem 1.5rem; font-size: .78rem; line-height: 1.75; color: var(--muted); }
.ft-imprint p { margin: 0; }
.ft-imprint strong { color: var(--text-2); font-weight: 700; }
.ft-imprint a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; overflow-wrap: anywhere; }
.ft-imprint a:hover { color: var(--red); }
.ft-sep { margin-inline: .6rem; color: var(--line-2); }
.ft-credit { margin-top: .35rem !important; }
.legal-table { margin: 1.2rem 0 1.4rem; max-width: 48rem; }
.legal-table table { min-width: 0; }
.legal-table thead th { width: auto; white-space: normal; font-size: .78rem; }
.legal-table small { font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.legal-table:has(thead) { max-width: none; font-size: .86rem; }
.legal-table:has(thead) table { min-width: 46rem; }
.legal-table:has(thead) tbody th { width: 22%; white-space: normal; }
.ga-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.ga-choice .btn { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.ga-choice-state { font-size: .84rem; color: var(--muted); }
.legal-table th { width: 32%; text-align: left; font-weight: 700; background: var(--panel); white-space: nowrap; }
.legal-table th, .legal-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-table a, .legal-body .blk-p a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .legal-table th { white-space: normal; width: 38%; } .ft-sep { display: block; height: 0; overflow: hidden; } }
.ft-social { display: flex; gap: .7rem; }
.ft-social a { width: 34px; height: 34px; border-radius: 6px; background: var(--navy-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .2s; }
.ft-social a:hover { background: var(--red); color: #fff; }
.error-page { padding-block: 5rem; }
.fade-in { opacity: 1; }
.js .fade-in { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .fade-in.from-left { transform: translateX(-28px); }
.js .fade-in.from-right { transform: translateX(28px); }
/* Sur un bloc pleine largeur, ce décalage de 28 px poussait la page hors du viewport
   (10 px de défilement latéral sur /sectors/* et /about/embassy/). */
@media (max-width: 1179.98px) { .js .fade-in.from-left, .js .fade-in.from-right { transform: translateY(14px); } }
.js .fade-in.zoom { transform: scale(.94); }
.js .fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade-in { opacity: 1; transform: none; transition: none; } }

@media (max-width: 640px) {
    .container { padding-inline: 1.1rem; }
    .section { padding-block: 3rem; }
    .stats-band { padding-block: 2.4rem 4.2rem; }
    .sector-strip { padding: 1.1rem 1.1rem; }
    .step { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.2rem 1rem; }
    .ct-form-card { padding: 1.5rem 1.2rem; }
    .btn { width: 100%; }
    .korea-text { padding: 1.8rem 1.3rem; }
    .gp-tile { padding: 1.6rem 1.3rem; grid-template-columns: 1fr; }
    .gp-big { text-align: left; }
    .news-side-card { grid-template-columns: 100px minmax(0, 1fr); }
}


/* ═══════════════════════════════════════════════════════════════
   Pages secteur (sx-*) — mise en page visuelle : hero photo plein
   écran, compteurs, chaîne de valeur, récit photo/texte, carte.
   ═══════════════════════════════════════════════════════════════ */
.eyebrow.light { color: #fff; opacity: .85; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb.light, .breadcrumb.light a { color: rgba(255,255,255,.75); }
.breadcrumb.light span::before { color: rgba(255,255,255,.4); }
.breadcrumb.light a:hover { color: #fff; }

/* Hero */
.sx-hero { position: relative; min-height: clamp(560px, 82vh, 880px); display: flex; align-items: stretch; background: var(--navy-2); color: #fff; overflow: hidden; isolation: isolate; }
.sx-hero-media { position: absolute; inset: 0; z-index: -2; }
.sx-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: sx-kenburns 22s ease-out forwards; transform-origin: 60% 40%; }
@keyframes sx-kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.sx-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,32,63,.92) 0%, rgba(16,32,63,.7) 45%, rgba(16,32,63,.25) 100%), linear-gradient(0deg, rgba(16,32,63,.85) 0%, rgba(16,32,63,0) 45%); }
.sx-hero-content { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding-block: 2rem 4.5rem; }
.sx-hero-text { max-width: 44rem; margin-block: auto; padding-block: 2.5rem 1rem; }
.sx-title { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.02; color: #fff; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 1.2rem; }
.sx-kicker { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 300; line-height: 1.5; color: rgba(255,255,255,.92); max-width: 36rem; margin-bottom: 2rem; }
.sx-scroll { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 13px; transform: translateX(-50%); }
.sx-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: sx-scroll 1.8s ease-in-out infinite; }
@keyframes sx-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Chiffres clés chevauchant le hero */
.sx-figures { position: relative; z-index: 2; margin-top: -4.5rem; }
.sx-figure-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); position: relative; padding-bottom: 1.8rem; }
@media (min-width: 900px) { .sx-figure-card { grid-template-columns: repeat(4, 1fr); } .sx-figure-card.cols-3 { grid-template-columns: repeat(3, 1fr); } .sx-figure-card.cols-5 { grid-template-columns: repeat(5, 1fr); } .sx-figure-card.cols-5 .sx-figure { padding-inline: 1.2rem; } }
.sx-figure { padding: 2rem 1.6rem 1rem; border-right: 1px solid var(--line); position: relative; }
.sx-figure:last-of-type { border-right: 0; }
@media (max-width: 899px) { .sx-figure:nth-child(2n) { border-right: 0; } .sx-figure { border-bottom: 1px solid var(--line); } }
.sx-figure::before { content: ''; position: absolute; left: 1.6rem; top: 0; width: 0; height: 4px; background: var(--red); transition: width .8s ease var(--d, 0s); }
.is-visible .sx-figure::before { width: 44px; }
.sx-figure-value { display: block; font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 900; color: var(--navy); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: .5rem; }
.sx-figure-label { display: block; font-size: .9rem; font-weight: 500; line-height: 1.45; }
.sx-figure-detail { display: block; font-size: .76rem; color: var(--muted); margin-top: .3rem; }
.sx-figure-source { position: absolute; right: 1.6rem; bottom: .7rem; font-size: .72rem; color: var(--dim); margin: 0; }

/* Intro + atouts */
.sx-intro { padding-block: 5rem 4rem; }
.sx-intro-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .sx-intro-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; } }
.sx-h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 900; line-height: 1.12; letter-spacing: -0.03em; }
.sx-muted { color: var(--muted); font-size: .95rem; }
.sx-strengths { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 3.5rem; }
@media (min-width: 800px) { .sx-strengths { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .sx-strengths.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.sx-strength-solo { margin-top: 2.2rem; }
.sx-strength { background: var(--panel); border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform .35s ease, box-shadow .35s ease, background .35s; --wm: 170px; }
.sx-strength:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #eef2f9; }
.sx-strength h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .6rem; }
.sx-strength p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* Chaîne de valeur */
.sx-chain-wrap { background: var(--navy); color: #fff; padding-block: 4rem 4.5rem; overflow: hidden; }
.sx-chain-wrap .eyebrow { color: var(--navy-light); }
.sx-chain-wrap .section-title { color: #fff; }
.sx-chain-wrap .section-head p { color: rgba(255,255,255,.7); }
.vc { position: relative; }
.vc-chain { position: relative; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; margin-top: 1rem; }
.vc-line { position: absolute; left: 8%; right: 8%; top: 44px; height: 4px; pointer-events: none; }
.vc-line svg { display: block; width: 100%; height: 4px; overflow: visible; }
.vc-base { stroke: rgba(255,255,255,.15); stroke-width: 2; }
.vc-draw { stroke: var(--red); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.6s cubic-bezier(.6,0,.2,1) .2s; }
.vc-chain.is-visible .vc-draw { stroke-dashoffset: 0; }
.vc-pulse { fill: #fff; filter: drop-shadow(0 0 6px #ff8a93); }
.vc-chain.fade-in { opacity: 1; transform: none; } /* le conteneur reste visible ; seuls le fil et les maillons s'animent */
.vc-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .55rem; background: none; border: 0; color: #fff; cursor: pointer; padding: 0 0 1rem; font: inherit; opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--d), transform .5s ease var(--d); }
.vc-chain.is-visible .vc-node { opacity: 1; transform: none; }
.vc-disc { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--navy-2); border: 2px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s, transform .3s, box-shadow .3s; }
.vc-count { position: absolute; top: -2px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--navy-2); font-size: .74rem; font-weight: 800; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.vc-node small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--navy-light); font-variant-numeric: tabular-nums; }
.vc-node b { font-size: .95rem; line-height: 1.35; text-align: center; word-break: keep-all; }
.vc-node:hover .vc-disc { border-color: #fff; transform: translateY(-3px); }
.vc-node:focus-visible { outline: none; }
.vc-node:focus-visible .vc-disc { outline: 2px solid #ff8a93; outline-offset: 4px; }
.vc-node[aria-selected="true"] .vc-disc { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 8px rgba(231,0,19,.22); }
.vc-node[aria-selected="true"]::after { content: ''; position: absolute; bottom: -21px; left: 50%; transform: translateX(-50%); border: 10px solid transparent; border-bottom-color: #fff; }
.vc-panel { margin-top: 20px; background: #fff; color: var(--text); border-radius: 14px; padding: clamp(1.2rem, 2.4vw, 2rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem 2.4rem; min-height: 220px; }
@media (min-width: 900px) { .vc-panel { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
/* Beaucoup d'entreprises : texte au-dessus, logos sur toute la largeur */
@media (min-width: 900px) { .vc-panel.is-many { grid-template-columns: minmax(0, 1fr); } .vc-panel.is-many .vc-text { max-width: 60rem; } .vc-panel.is-many .vc-proofs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); } }
.vc-panel[hidden] { display: none; }
.vc-k { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--red); margin: 0 0 .4rem; font-variant-numeric: tabular-nums; }
.vc-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; letter-spacing: -.02em; margin: 0 0 .7rem; color: var(--text); }
.vc-text p { color: var(--text-2); margin: 0; line-height: 1.8; }
.vc-proofs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; align-content: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vc-proof { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; animation: vc-rise .45s ease both; animation-delay: calc(var(--i) * 60ms); }
@keyframes vc-rise { from { opacity: 0; transform: translateY(8px); } }
.vc-logo { height: 60px; border-radius: 8px; background: #fff; border: 1px solid #eef1f6; display: flex; align-items: center; justify-content: center; padding: 3px 6px; overflow: hidden; }
.vc-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.vc-logo-text { font-size: .72rem; font-weight: 800; color: var(--navy); text-align: center; line-height: 1.2; word-break: break-word; }
.vc-proof-t { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.vc-proof-t b { display: block; font-size: .9rem; color: var(--text); }
.vc-place { display: inline-flex; align-items: center; gap: .2rem; margin-top: .3rem; padding: .08rem .45rem; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .7rem; font-weight: 600; width: fit-content; }
.vc-proof-t .vc-place { display: flex; }
.vc-place.is-tp { background: var(--panel-red); color: var(--red); }
.vc-legend { margin: .9rem 0 0; font-size: .78rem; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.vc-legend .vc-place { margin: 0; }
.vc-legend a { color: var(--red); font-weight: 700; }
@media (max-width: 899px) {
    .vc-chain { grid-template-columns: none; grid-auto-columns: 108px; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    .vc-node { scroll-snap-align: start; }
    .vc-line, .vc-node[aria-selected="true"]::after { display: none; }
    .vc-disc { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .vc-node { opacity: 1; transform: none; transition: none; }
    .vc-draw { stroke-dashoffset: 0; transition: none; }
    .vc-pulse { display: none; }
    .vc-proof { animation: none; }
}

/* Récit photo / texte */
.sx-story { padding-block: 5rem 2rem; }
.sx-story-head { max-width: 46rem; margin-bottom: 3rem; }
.sx-story-block { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; margin-bottom: 5rem; }
@media (min-width: 1024px) { .sx-story-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; } .sx-story-block.flip .sx-story-media { order: 2; } }
.sx-story-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--panel-2); }
.sx-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.sx-story-block:hover .sx-story-media img { transform: scale(1.05); }
.sx-story-num { position: absolute; left: 1.4rem; bottom: 1.2rem; font-size: 4rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -0.04em; text-shadow: 0 6px 24px rgba(0,0,0,.45); }
.sx-story-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 1rem; }
.sx-story-body > .sx-clamp p { color: var(--text-2); font-size: 1rem; }
.sx-items { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
@media (min-width: 640px) { .sx-items { grid-template-columns: 1fr 1fr; } }
.sx-item { background: var(--panel); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.35rem; transition: background .3s, transform .3s, box-shadow .3s; --wm: 124px; }
.sx-item:hover { background: #eef2f9; transform: translateY(-4px); box-shadow: var(--shadow); }
.sx-item .ib-ico { margin-bottom: .8rem; }
.sx-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: .25rem; }
.sx-item p { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Texte replié + bouton « 더 보기 » */
.sx-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.sx-clamp.is-open { display: block; -webkit-line-clamp: unset; }
.sx-clamp p:last-child { margin-bottom: 0; }
.sx-more { background: none; border: 0; padding: .4rem 0 0; color: var(--red); font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; }
.sx-more::after { content: ' ↓'; }
.sx-more.is-open::after { content: ' ↑'; }

/* Bande TIA parallaxe */
.sx-band { position: relative; color: #fff; background: var(--navy-2) center / cover no-repeat; padding-block: 5.5rem; isolation: isolate; }
@media (min-width: 1024px) and (hover: hover) { .sx-band { background-attachment: fixed; } }
.sx-band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,32,63,.9) 0%, rgba(16,32,63,.6) 55%, rgba(16,32,63,.3) 100%); }
.sx-band-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .sx-band-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; } }
.sx-band-title { font-size: clamp(1.7rem, 3vw, 2.5rem); color: #fff; font-weight: 900; margin-bottom: .8rem; }
.sx-band-text { color: rgba(255,255,255,.75); margin: 0; }
.sx-band-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; position: relative; padding-bottom: 1.6rem; }
.sx-band-figure { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: rgba(255,255,255,.85); }
.sx-band-value { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 900; line-height: 1; color: #fff; letter-spacing: -0.03em; }
.sx-band-source { position: absolute; left: 0; bottom: 0; font-size: .72rem; color: rgba(255,255,255,.55); margin: 0; }

/* Champions */
.sx-champions { padding-block: 5rem; background: var(--panel); }
.sx-assoc { padding-block: 5rem; background: #fff; }
.sx-assoc .pt { margin: 2rem 0 0; }
.sx-assoc .pt + .pt, .sx-assoc .fade-in + .fade-in .pt { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
/* Grille sur 12 colonnes : les rangées sont toujours pleines (5 → 3+2, 7 → 4+3, 10 → 4+3+3…) */
.sx-champion-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) and (max-width: 1199px) {
    .sx-champion-grid { grid-template-columns: 1fr 1fr; }
    .sx-champion-grid.n1 .sx-champion, .sx-champion-grid.n3 .sx-champion:last-child, .sx-champion-grid.n5 .sx-champion:last-child, .sx-champion-grid.n7 .sx-champion:last-child, .sx-champion-grid.n9 .sx-champion:last-child, .sx-champion-grid.n11 .sx-champion:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
    .sx-champion-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .sx-champion-grid .sx-champion { grid-column: span 3; }
    .sx-champion-grid.n1 .sx-champion { grid-column: span 12; }
    .sx-champion-grid.n2 .sx-champion { grid-column: span 6; }
    .sx-champion-grid.n3 .sx-champion, .sx-champion-grid.n6 .sx-champion, .sx-champion-grid.n9 .sx-champion { grid-column: span 4; }
    .sx-champion-grid.n5 .sx-champion:nth-child(-n+3) { grid-column: span 4; } .sx-champion-grid.n5 .sx-champion:nth-child(n+4) { grid-column: span 6; }
    .sx-champion-grid.n7 .sx-champion:nth-child(n+5) { grid-column: span 4; }
    .sx-champion-grid.n10 .sx-champion:nth-child(n+5) { grid-column: span 4; }
    .sx-champion-grid.n11 .sx-champion:nth-child(n+9) { grid-column: span 4; }
}
.sx-champion { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem 1.5rem; border: 1px solid var(--line); position: relative; transition: transform .35s ease, box-shadow .35s ease; display: flex; flex-direction: column; }
.sx-champion:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sx-champion-logo .ib-ico { margin-bottom: 0; }
.sx-champion h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .7rem; text-transform: uppercase; }
.sx-champion-logo { height: 64px; display: flex; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.sx-champion-logo img { max-height: 50px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.sx-champion h3.has-logo { font-size: .78rem; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.sx-champion p { font-size: .86rem; color: var(--muted); line-height: 1.6; margin: 0; }
.sx-champion .sx-more { align-self: flex-start; }

/* Carte : grille « bento » (option C) */
.sx-map-wrap { padding-block: 4.5rem; }
.sx-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(118px, auto); gap: 12px; }
.sx-tile { border-radius: var(--radius); padding: 1rem 1.15rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem; min-width: 0; transition: transform .25s, box-shadow .25s; cursor: default; }
.sx-tile.col-l { grid-column: 1 / span 3; } .sx-tile.col-r { grid-column: 10 / span 3; }
.sx-tile b { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.sx-tile > span:last-child { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.sx-tile-ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: auto; }
.sx-tile.t-hub { background: var(--panel); } .sx-tile.t-hub .sx-tile-ico { background: var(--panel-red); color: var(--red); }
.sx-tile.t-site { background: var(--panel); } .sx-tile.t-site .sx-tile-ico { background: var(--panel-2); color: var(--navy); }
.sx-tile.t-port { background: #eaf1fc; } .sx-tile.t-port .sx-tile-ico { background: #fff; color: #2f6fd6; }
.sx-tile:hover, .sx-tile.is-active { transform: translateY(-4px); box-shadow: var(--shadow); }
.sx-tile.is-active.t-hub .sx-tile-ico { background: var(--red); color: #fff; }
.sx-tile.is-active.t-site .sx-tile-ico { background: var(--navy); color: #fff; }
.sx-tile.is-active.t-port .sx-tile-ico { background: #2f6fd6; color: #fff; }
.sx-tile.t-fig { color: #fff; } .sx-tile.t-fig.navy { background: var(--navy); } .sx-tile.t-fig.red { background: var(--red); }
.sx-tile.t-fig b { font-size: clamp(1.6rem, 2.2vw, 2.1rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.sx-tile.t-fig > span:last-child { color: rgba(255,255,255,.78); }
.sx-bento-map { grid-column: 4 / span 6; grid-row: 1 / span var(--rows, 4); border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #eef2fa, #fff 75%); overflow: hidden; position: relative; min-height: 0; }
.sx-bento-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.sx-bento-map.is-zoomed > svg { cursor: grab; } .sx-bento-map.is-dragging > svg { cursor: grabbing; }
.sx-map-land { filter: none; }
.sx-gov { fill: #1b2c5a; stroke: #0b1633; stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .25s; }
.sx-gov:hover { fill: #243b7c; }
/* Carte régionale « salle de contrôle » (tnmap.js) : mêmes jetons rm-* que le simulateur logistique */
.tn-map { background: #0b1633; border-color: #0b1633; }
.tn-map > svg { cursor: grab; touch-action: pan-y; }
.tn-map.is-dragging > svg { cursor: grabbing; }
.tn-map.is-dragging .rm-flow, .tn-map.is-dragging .rm-pulse { animation-play-state: paused; }
.tn-map.is-dragging .lg-zoom, .tn-map.is-dragging .lg-pop, .tn-map.is-dragging .tn-pop { backdrop-filter: none; -webkit-backdrop-filter: none; }
.tn-ocean { fill: #0b1633; }
.tn-rings circle { fill: none; stroke: rgba(255,77,90,.6); stroke-width: 1.3; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.tn-rings text { fill: #ff4d5a; font-family: var(--font); font-weight: 800; letter-spacing: .04em; text-anchor: middle; paint-order: stroke; stroke: #0b1633; stroke-width: 3px; }
.tn-leader { stroke: #9fb3e0; stroke-width: 1.4; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.tn-anchor { fill: #9fb3e0; stroke: #0b1633; stroke-width: 1; }
.tn-map .kind-site .rm-dot { fill: #9fb3e0; } .tn-map .kind-port .rm-dot { fill: #fff; stroke: rgba(47,111,214,.6); }
.tn-map .tn-origin .rm-halo { fill: #ff4d5a; }
.tn-map .lg-zoom { position: absolute; left: .9rem; bottom: .9rem; z-index: 3; }
.tn-map .sx-map-src { right: .9rem; left: auto; bottom: .9rem; background: rgba(16,32,63,.75); color: #9fb3e0; }
.tn-pop { z-index: 4; }
.sx-tile.is-selected { box-shadow: inset 0 0 0 2px var(--navy); }
.sx-tile.t-hub.is-selected .sx-tile-ico { background: var(--red); color: #fff; }
.sx-tile.t-site.is-selected .sx-tile-ico { background: var(--navy); color: #fff; }
.sx-tile.t-port.is-selected .sx-tile-ico { background: #2f6fd6; color: #fff; }
@media (max-width: 900px) {
    .sx-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
    .sx-tile.col-l, .sx-tile.col-r { grid-column: auto !important; grid-row: auto !important; }
    .sx-bento-map { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 1 / 1; max-width: 100%; }
    .sx-tile { min-height: 110px; }
}

/* Écosystème */
.sx-eco { background: var(--panel); padding-block: 5rem; }
.sx-eco-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .sx-eco-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; } }
.sx-eco-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; background: var(--panel-2); position: sticky; top: 6.5rem; }
.sx-eco-media img { width: 100%; height: 100%; object-fit: cover; }
.sx-acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-top: .8rem; overflow: hidden; }
.sx-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 800; font-size: 1.05rem; }
.sx-acc summary::-webkit-details-marker { display: none; }
.sx-acc summary i { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid var(--navy); position: relative; transition: transform .3s, background .3s; }
.sx-acc summary i::before, .sx-acc summary i::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--navy); transform: translate(-50%, -50%); transition: background .3s; }
.sx-acc summary i::before { width: 12px; height: 2px; } .sx-acc summary i::after { width: 2px; height: 12px; }
.sx-acc[open] summary i { transform: rotate(45deg); background: var(--navy); }
.sx-acc[open] summary i::before, .sx-acc[open] summary i::after { background: #fff; }
.sx-acc-body { padding: 0 1.4rem 1.4rem; animation: sx-acc-in .35s ease; }
@keyframes sx-acc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sx-acc-body p { font-size: .92rem; color: var(--text-2); }
.sx-eco-items { list-style: none; display: grid; gap: .6rem; }
.sx-eco-items li { font-size: .88rem; color: var(--muted); padding-left: 1.2rem; position: relative; line-height: 1.6; }
.sx-eco-items li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.sx-eco-items strong { display: block; color: var(--text); }

/* Contact + guides */
.sx-contact { padding-block: 5rem; }
.sx-contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sx-contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; } }
.sx-pm { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.6rem 2.4rem; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.sx-pm h2 { color: #fff; font-size: 1.9rem; font-weight: 900; }
.sx-pm-role { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: .6rem; }
.sx-pm-line { color: #fff; font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: .2rem; }
.sx-pm-line:hover { color: #fff; border-color: var(--red); }
.sx-pm-extra { color: rgba(255,255,255,.7); font-size: .85rem; margin: .4rem 0 0; }
.sx-pm .btn { margin-top: 1.4rem; }
.sx-guides { background: var(--panel); border-radius: var(--radius); padding: 2.4rem 2.4rem; }
.sx-guide-list { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.sx-guide-list a { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; font-weight: 700; color: var(--text); transition: transform .25s, border-color .25s; }
.sx-guide-list a:hover { transform: translateX(6px); border-color: var(--navy-soft); color: var(--red); }
.sx-guide-list .icon { color: var(--navy); flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
    .sx-hero-media img, .sx-scroll span, .sx-pin-pulse, .sx-acc-body { animation: none; }
    .sx-chain-step, .sx-pin { opacity: 1; transform: none; transition: none; }
    .sx-chain::after { transition: none; }
}
@media (max-width: 640px) {
    .sx-hero { min-height: clamp(520px, 78vh, 720px); }
    .sx-figures { margin-top: -2.5rem; }
    .sx-figure { padding: 1.4rem 1.1rem .9rem; }
    .sx-intro, .sx-story, .sx-champions, .sx-assoc, .sx-map-wrap, .sx-eco, .sx-contact { padding-block: 3rem; }
    .sx-story-block { margin-bottom: 3rem; }
    .sx-pm, .sx-guides { padding: 1.8rem 1.4rem; }
    .sx-eco-media { position: static; aspect-ratio: 16 / 10; }
}

/* ═══════════════════════════════════════════════════════════════
   Page Lifestyle — la mise en page (direction A « Blanc de chaux ») est dans
   static/css/lifestyle.css. Ici : sommaire collant, onglets de la carte des
   loisirs (composant tn_map) et bandeau d'accueil.
   ═══════════════════════════════════════════════════════════════ */

/* Sommaire collant */
.lx-subnav { position: sticky; top: 76px; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 3rem; }
.lx-subnav-inner { display: flex; gap: .4rem; overflow-x: auto; padding-block: .7rem; scrollbar-width: none; }
.lx-subnav-inner::-webkit-scrollbar { display: none; }
.lx-subnav a { flex: 0 0 auto; font-size: .85rem; font-weight: 700; color: var(--text-2); padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; transition: all .2s; }
.lx-subnav a:hover, .lx-subnav a.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Carte des loisirs */
.lx-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
@media (max-width: 640px) { .lx-tabs { grid-template-columns: 1fr; } }
.lx-tab { font-family: inherit; text-align: left; background: var(--panel); border: 2px solid transparent; border-radius: var(--radius); padding: 1rem 1rem .9rem; cursor: pointer; display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: baseline; color: var(--text); transition: all .25s; }
.lx-tab-ico { grid-column: 1 / -1; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.lx-tab b { font-size: 2rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.lx-tab > span:not(.lx-tab-ico) { font-size: .75rem; color: var(--muted); }
.lx-tab em { grid-column: 1 / -1; font-style: normal; font-weight: 800; font-size: .95rem; margin-top: .3rem; }
.lx-tab:hover { border-color: var(--navy-soft); }
.lx-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.lx-tab.is-active b, .lx-tab.is-active em { color: #fff; }
.lx-tab.is-active > span:not(.lx-tab-ico) { color: rgba(255,255,255,.7); }
.lx-tab.is-active .lx-tab-ico { background: var(--red); color: #fff; }
.lx-tab small { grid-column: 1 / -1; font-size: .78rem; font-weight: 400; color: var(--muted); margin-top: .35rem; line-height: 1.45; }
.lx-tab.is-active small { color: rgba(255,255,255,.75); }
.lx-tiles { display: contents; } .lx-tiles[hidden] { display: none; }
.sx-map-src { position: absolute; right: .9rem; bottom: .8rem; font-size: .68rem; color: var(--dim); background: rgba(255,255,255,.8); padding: .2rem .5rem; border-radius: 4px; pointer-events: none; }
@media (max-width: 640px) { .sx-map-src { right: auto; left: .9rem; } }

/* Accueil : bandeau lifestyle */
.home-life { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; min-height: 440px; display: grid; align-items: end; }
.home-life > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 6s ease; }
.home-life:hover > img { transform: scale(1.05); }
.home-life::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,32,63,.92) 0%, rgba(16,32,63,.6) 50%, rgba(16,32,63,.1) 100%); }
.home-life-body { padding: 3rem clamp(1.5rem, 4vw, 3.5rem); max-width: 44rem; }
.home-life h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 900; margin-bottom: .8rem; }
.home-life p { color: rgba(255,255,255,.85); }
.home-life-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.home-life-chips span { font-size: .8rem; font-weight: 700; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .25rem .8rem; background: rgba(255,255,255,.08); }
/* Logo Inspiring Tunisia posé directement sur la photo, sans cadre (charte ONTT 2016, § 1.5) */
.home-life > img.home-life-logo { inset: 1.6rem 1.8rem auto auto; height: 54px; width: auto; object-fit: contain; z-index: 1; transition: none; filter: drop-shadow(0 2px 12px rgba(0,30,60,.35)); }
.home-life:hover > img.home-life-logo { transform: none; }

@media (max-width: 640px) {
    .lx-subnav { top: 64px; margin-top: 2rem; }
    .lx-tabs { gap: .4rem; } .lx-tab { padding: .8rem .7rem; } .lx-tab b { font-size: 1.5rem; }
    .home-life { min-height: 380px; }
}

/* ── Fiches contact (pc-*) — gérées dans /cms/ › 연락처, affectées page par page ── */
.pc-list { display: grid; gap: 1.2rem; container-type: inline-size; }
.pc-grid { grid-template-columns: 1fr; }
.pc-stack { grid-template-columns: 1fr; gap: .9rem; }
.pc-card { border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; border-top: 3px solid transparent; min-width: 0; }
.pc-light .pc-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.pc-dark .pc-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--navy-light); }
.pc-card.is-highlight { border-top-color: var(--red); }
.pc-main { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.pc-head { display: flex; gap: 1rem; align-items: center; }
.pc-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pc-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin: 0 0 .35rem; color: var(--red); }
.pc-dark .pc-label { color: #ff8a93; }
.pc-name { font-size: 1.45rem; font-weight: 900; margin: 0; }
.pc-dark .pc-name { color: #fff; }
.pc-role { font-size: .88rem; margin: .2rem 0 0; color: var(--muted); }
.pc-dark .pc-role { color: rgba(255,255,255,.72); }
.pc-lines { display: grid; gap: .1rem; }
.pc-line { display: flex; align-items: baseline; gap: .7rem; font-weight: 700; font-size: 1.02rem; padding: .35rem 0; border-bottom: 1px solid var(--line); color: var(--text); overflow-wrap: anywhere; }
.pc-dark .pc-line { color: #fff; border-color: rgba(255,255,255,.18); }
.pc-line:hover, .pc-dark .pc-line:hover { color: var(--red); }
.pc-dark .pc-line:hover { color: #ff8a93; }
.pc-k { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--dim); min-width: 2.6rem; }
.pc-dark .pc-k { color: var(--navy-light); }
.pc-hidden { margin: 0; flex-wrap: wrap; row-gap: .3rem; }
.pc-hidden:hover { color: var(--text); }
.pc-dark .pc-hidden:hover { color: #fff; }
.pc-num { letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pc-reveal { margin-left: auto; font: 700 .74rem var(--font); color: var(--red); background: none; border: 1px solid currentColor; border-radius: 999px; padding: .12rem .7rem; cursor: pointer; white-space: nowrap; align-self: center; }
.pc-reveal:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pc-dark .pc-reveal { color: #ff8a93; }
.pc-dark .pc-reveal:hover { background: #ff8a93; color: var(--navy-2); border-color: #ff8a93; }
.pc-reveal:disabled { opacity: .6; cursor: progress; }
.pc-note { font-size: .86rem; margin: 0; color: var(--muted); }
.pc-dark .pc-note { color: rgba(255,255,255,.72); }
.pc-services { border-radius: var(--radius-sm); padding: .9rem 1rem; background: var(--panel); }
.pc-dark .pc-services { background: rgba(0,0,0,.18); }
.pc-services-title { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin: 0 0 .5rem; color: var(--navy); }
.pc-dark .pc-services-title { color: var(--navy-light); }
.pc-services ul { list-style: none; display: grid; gap: .45rem; }
.pc-services li { position: relative; padding-left: 1.2rem; font-size: .86rem; line-height: 1.55; color: var(--text-2); }
.pc-dark .pc-services li { color: rgba(255,255,255,.88); }
.pc-services li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 2px; background: var(--red); }
.pc-stack .pc-main { gap: .6rem; }
.pc-stack .pc-card { padding: 1.1rem 1.1rem 1rem; gap: .6rem; }
.pc-stack .pc-name { font-size: 1.1rem; }
.pc-stack .pc-line { font-size: .88rem; }
.pc-stack .pc-services { padding: .7rem .8rem; }
.pc-stack .pc-services li { font-size: .8rem; }
.sx-pm .pc-list { align-self: stretch; margin-top: .4rem; }
.sx-pm-title { color: #fff; font-size: 1.6rem; font-weight: 900; margin-bottom: .4rem; }
.cta-contacts { padding-bottom: 4rem; margin-top: -1.5rem; }
.ct-contacts { margin-top: 2.2rem; }
@media (min-width: 900px) { .sx-contact-grid.has-contacts { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
@container (min-width: 620px) {
    .pc-grid .pc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 1.8rem; align-items: start; }
    .pc-grid .pc-card:not(.has-services) { display: flex; align-items: stretch; }
    .pc-grid .pc-card:not(.has-services) .pc-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 1.8rem; align-items: center; }
    .pc-grid .pc-card:not(.has-services) .pc-lines { grid-column: 2; grid-row: 1 / span 3; }
}


/* ═══════════════════════════════════════════════════════════════
   Pastille + filigrane (E+B, validé le 17/09/2026) — remplace les
   numéros décoratifs sur toutes les cartes. Les étapes de procédure
   (.blk-steps) gardent leurs numéros : là, l'ordre est une information.
   ═══════════════════════════════════════════════════════════════ */
.ib { position: relative; overflow: hidden; isolation: isolate; }
.ib-wm { position: absolute; z-index: -1; right: -12px; bottom: -16px; width: var(--wm, 132px); height: var(--wm, 132px); color: var(--navy); opacity: .1; transform: rotate(-10deg); pointer-events: none; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.ib:hover .ib-wm { transform: rotate(0) scale(1.06); opacity: .16; }
.ib-ico { width: 44px; height: 44px; flex: 0 0 auto; align-self: flex-start; border-radius: 50%; background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(16,32,63,.08); margin-bottom: .9rem; transition: background .3s, color .3s, box-shadow .3s, transform .3s ease; }
.ib-ico-lg { width: 54px; height: 54px; margin-bottom: 1.2rem; }
/* Survol (option C validée 2026-09-17) : la pastille garde sa couleur ; la carte se soulève, filet rouge en haut */
.ib::before { content: ""; position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 3px; background: var(--red); transition: width .4s ease; pointer-events: none; }
.ib:hover::before { width: 100%; }
.ib:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ib:hover .ib-ico { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(16,32,63,.15); }
.ib--light .ib-ico { background: var(--panel-red); box-shadow: none; }
.ib--light .ib-wm { opacity: .07; }
.ib--light:hover .ib-wm { opacity: .12; }
.card.ib, .reason-card.ib { --wm: 140px; }
.sector-card.ib { --wm: 150px; }
.sector-card .sector-card-badge { position: relative; z-index: 1; margin: -2.9rem 0 .35rem; background: #fff; box-shadow: 0 8px 20px rgba(16,32,63,.16); }
.sector-card:hover .sector-card-badge { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(16,32,63,.2); }
@media (prefers-reduced-motion: reduce) { .ib-wm, .ib-ico, .ib::before { transition: none; } .ib:hover .ib-wm { transform: rotate(-10deg); } .ib:hover, .ib:hover .ib-ico, .sector-card:hover .sector-card-badge { transform: none; } }

/* Rangées pleines (card-grid) : pas de carte isolée sur la dernière ligne */
@media (min-width: 720px) and (max-width: 1099px) {
    .card-grid.cols-2 > :nth-child(2n+1):last-child, .card-grid.cols-3 > :nth-child(2n+1):last-child, .card-grid.cols-4 > :nth-child(2n+1):last-child { grid-column: 1 / -1; }
}
@media (min-width: 720px) and (min-width: 1100px) {
    .card-grid.cols-2 > :nth-child(2n+1):last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .card-grid.cols-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .card-grid.cols-3 > * { grid-column: span 2; }
    /* 3n+1 : les quatre dernières passent en 2 + 2 */
    .card-grid.cols-3 > :nth-child(3n+1):nth-last-child(4), .card-grid.cols-3 > :nth-child(3n+2):nth-last-child(3),
    .card-grid.cols-3 > :nth-child(3n):nth-last-child(2), .card-grid.cols-3 > :nth-child(3n+1):nth-last-child(1) { grid-column: span 3; }
    /* 3n+2 : les deux dernières se partagent la rangée */
    .card-grid.cols-3 > :nth-child(3n+1):nth-last-child(2), .card-grid.cols-3 > :nth-child(3n+2):nth-last-child(1) { grid-column: span 3; }
    .card-grid.cols-3 > :only-child { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════
   Logistics Reach (lg-*) — simulateur logistique « salle de contrôle »
   Moteur SVG partagé (rm-*) : page /logistics/ et bannière d'accueil.
   ═══════════════════════════════════════════════════════════════ */
.rm { --rm-ocean: #0b1633; --rm-land: #1b2c5a; --rm-land-stroke: #0b1633; --rm-tn: #e70013; --rm-grat: rgba(159,179,224,.12); --rm-line: #9fb3e0; --rm-road: #ffffff; --rm-dot: #ffffff; --rm-city: #9fb3e0; --rm-text: #e8eef9; --rm-text-2: #9fb3e0; --rm-accent: #ff4d5a; background: var(--rm-ocean); color: #fff; }
.rm > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rm-ocean { fill: var(--rm-ocean); }
.rm-land { fill: var(--rm-land); stroke: var(--rm-land-stroke); stroke-width: .7; stroke-linejoin: round; }
.rm-tn { fill: var(--rm-tn); stroke: rgba(255,90,100,.4); stroke-width: 6; paint-order: stroke; stroke-linejoin: round; }
.rm-grat line { stroke: var(--rm-grat); stroke-width: .5; }
.rm-line { fill: none; stroke: var(--rm-line); stroke-width: 1.3; stroke-linecap: round; transition: opacity .25s, stroke .25s; }
.rm-line-roro, .rm-line-sea { stroke-dasharray: 5 4; }
.rm-line-air { stroke-dasharray: 1.6 4.2; stroke-width: 1.2; }
.rm-line-road { stroke-width: 2.4; stroke: var(--rm-road); }
.rm-flow { animation: rm-flow 1.4s linear infinite; }
@keyframes rm-flow { to { stroke-dashoffset: -18; } }
.rm-node { cursor: pointer; outline: none; }
.rm-halo { fill: var(--rm-dot); opacity: 0; transition: opacity .2s; }
.rm-dot { fill: var(--rm-dot); stroke: rgba(255,255,255,.35); stroke-width: 2.2; paint-order: stroke; transition: fill .2s; }
.rm-city .rm-dot { fill: var(--rm-city); }
.rm-node.is-hi .rm-halo, .rm-node.is-sel .rm-halo { opacity: .22; }
.rm-node.is-sel .rm-dot { fill: var(--rm-accent); stroke: #fff; }
.rm-node:focus-visible .rm-halo { opacity: .35; }
.rm-label { fill: var(--rm-text); font-weight: 600; paint-order: stroke; stroke: var(--rm-ocean); stroke-width: 3.2px; stroke-linejoin: round; pointer-events: none; }
.rm-label.is-sel, .rm-label.is-hi { fill: var(--rm-accent); font-weight: 800; }
.rm-label-origin { font-weight: 900; fill: var(--rm-tn); }
.rm-origin-dot { fill: var(--rm-tn); stroke: #fff; stroke-width: 1.6; }
.rm-pulse { fill: none; stroke: var(--rm-tn); stroke-width: 1.3; transform-origin: center; transform-box: fill-box; animation: rm-pulse 2.6s ease-out infinite; }
.rm-pulse-2 { animation-delay: 1.3s; }
@keyframes rm-pulse { 0% { transform: scale(.25); opacity: .95; } 100% { transform: scale(1.7); opacity: 0; } }
.rm-badge rect { fill: #10203f; stroke: rgba(159,179,224,.5); stroke-width: .8; }
.rm-badge text { fill: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.rm-leg { fill: var(--rm-text-2); font-weight: 700; paint-order: stroke; stroke: var(--rm-ocean); stroke-width: 3px; }
.rm-cluster polygon { stroke: #fff; stroke-width: 1.1; }
.rm-cluster-label { fill: var(--rm-text); font-weight: 700; paint-order: stroke; stroke: var(--rm-ocean); stroke-width: 3px; }
.rm-seoul-label { fill: var(--rm-accent); font-weight: 900; paint-order: stroke; stroke: var(--rm-ocean); stroke-width: 3px; }
.rm-seoul-sub { fill: var(--rm-text-2); font-weight: 500; paint-order: stroke; stroke: var(--rm-ocean); stroke-width: 3px; }
.rm-line-seoul { stroke: var(--rm-accent); stroke-width: 1.6; }
svg:has(.rm-line.is-hi) .rm-line:not(.is-hi):not(.rm-line-seoul) { opacity: .18; }
.rm-line.is-hi, .rm-corridor.is-hi .rm-line { stroke: var(--rm-accent); stroke-width: 2.6; opacity: 1; }
.rm-card-route { font-size: .72rem; letter-spacing: .16em; color: var(--red); font-weight: 700; margin-bottom: .3rem; }
.rm-card-title { font-size: 1.25rem; font-weight: 900; line-height: 1.2; color: var(--text); }
.rm-card-title small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-top: .2rem; }
.rm-card-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: .9rem 0 0; font-size: .86rem; }
.rm-card-dl dt { color: var(--muted); font-weight: 500; white-space: nowrap; }
.rm-card-dl dd { margin: 0; font-weight: 700; color: var(--text); }

/* Éléments d'interface partagés (pilules de mode, listes) */
.lg-modes { display: inline-flex; padding: 4px; background: rgba(16,32,63,.7); border: 1px solid rgba(159,179,224,.25); border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); height: max-content; }
.lg-mode { white-space: nowrap; border: 0; background: transparent; color: #c9d4ee; font: inherit; font-weight: 700; font-size: .85rem; padding: .55rem 1.1rem; border-radius: 999px; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s; }
.lg-mode.is-on { background: #fff; color: var(--navy-2); }
.lg-mode em { font-style: normal; font-size: .62rem; letter-spacing: .14em; opacity: .7; margin-left: .35rem; }
.lg-mode:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Page : carte plein écran */
.lg-hero { position: relative; min-height: calc(100vh - 120px); overflow: hidden; isolation: isolate; }
.lg-hero > svg { z-index: 0; }
.lg-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 58% 60% at 14% 16%, rgba(11,22,51,.92), rgba(11,22,51,0) 70%); }
.lg-ui { position: relative; z-index: 2; min-height: inherit; padding: clamp(1.2rem, 3vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; gap: 1.2rem; pointer-events: none; }
.lg-ui > * { pointer-events: auto; }
.lg-title { grid-column: 1; grid-row: 1; max-width: 600px; }
.lg-title .breadcrumb { margin-bottom: 1.2rem; }
.lg-title .eyebrow { color: #ff4d5a; }
.lg-h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem; }
.lg-kicker { color: #c9d4ee; font-size: 1rem; font-weight: 300; max-width: 30rem; margin: 0; }
.lg-kicker strong { color: #fff; }
.lg-hero .lg-modes { grid-column: 2; grid-row: 1; justify-self: end; }
/* Languette au bord droit → tiroir qui glisse par-dessus la carte (la carte reste entière) */
.lg-tab { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 3; writing-mode: vertical-rl; display: flex; align-items: center; gap: .6rem; padding: 1.1rem .6rem; border: 1px solid rgba(159,179,224,.3); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: rgba(16,32,63,.85); color: #fff; font: inherit; font-weight: 700; font-size: .84rem; letter-spacing: .04em; cursor: pointer; transition: opacity .2s, background .2s; }
.lg-tab:hover { background: rgba(26,43,95,.95); }
.lg-tab small { font-size: .68rem; color: #9fb3e0; font-variant-numeric: tabular-nums; } .lg-tab i { font-style: normal; color: #ff4d5a; }
.lg-hero.is-open .lg-tab { opacity: 0; pointer-events: none; }
.lg-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 100%); z-index: 5; background: rgba(16,32,63,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-left: 1px solid rgba(159,179,224,.25); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s; padding: 1.4rem; overflow: auto; }
.lg-hero.is-open .lg-drawer { transform: none; visibility: visible; transition-delay: 0s; }
.lg-drawer-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; } .lg-drawer-h b { font-size: 1rem; font-weight: 800; }
.lg-drawer-x { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 32px; height: 32px; border-radius: 50%; font: inherit; cursor: pointer; } .lg-drawer-x:hover { background: rgba(255,255,255,.2); }
.lg-drawer-hint { font-size: .74rem; color: #9fb3e0; margin: 0 0 .6rem; }
/* Fiche ancrée au point cliqué */
.lg-pop, .tn-pop { position: absolute; z-index: 4; width: 320px; max-width: calc(100% - 2rem); background: rgba(255,255,255,.98); color: var(--text); border-radius: var(--radius); padding: .9rem 1.1rem 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.4); transform: translate(18px, -50%); }
.lg-pop::before, .tn-pop::before { content: ""; position: absolute; left: -8px; top: var(--ay, 50%); width: 14px; height: 14px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.lg-pop.is-left, .tn-pop.is-left { transform: translate(calc(-100% - 18px), -50%); } .lg-pop.is-left::before, .tn-pop.is-left::before { left: auto; right: -8px; }
/* Fiche sous / au-dessus du repère quand la carte est trop étroite pour la placer à côté (tnmap.js) */
.tn-pop.is-float { transform: none; }
.tn-pop.is-float::before { left: var(--ax, 50%); top: -7px; transform: translateX(-50%) rotate(45deg); }
.tn-pop.is-float.is-above::before { top: auto; bottom: -7px; }
.lg-pop-x { position: absolute; right: .5rem; top: .5rem; border: 0; background: transparent; color: var(--dim); font: inherit; font-size: 1rem; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; } .lg-pop-x:hover { background: var(--panel); color: var(--text); }
.lg-pop .rm-card-title, .tn-pop .rm-card-title { padding-right: 1.6rem; } .lg-pop .rm-card-dl, .tn-pop .rm-card-dl { font-size: .8rem; gap: .3rem .8rem; }
.lg-pop-actions { margin-top: .8rem; display: flex; gap: .5rem; flex-wrap: wrap; } .lg-pop-actions a { font-size: .78rem; font-weight: 700; color: var(--navy); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .35rem .7rem; } .lg-pop-actions a.p { background: var(--red); border-color: var(--red); color: #fff; } .lg-pop-actions a:hover { color: var(--red); } .lg-pop-actions a.p:hover { background: var(--red-2); color: #fff; }
/* Bandeau de puces + fiche : version mobile de la liste (masqués sur grand écran) */
.lg-chips, .lg-sheet { display: none; }
.lg-chip { scroll-snap-align: start; text-align: left; border: 1px solid rgba(159,179,224,.25); background: rgba(255,255,255,.04); color: #fff; border-radius: var(--radius); padding: .7rem .8rem; display: grid; gap: .2rem; font: inherit; cursor: pointer; }
.lg-chip.is-on { background: #fff; color: var(--text); border-color: #fff; }
.lg-chip b { font-size: .92rem; font-weight: 800; } .lg-chip small { font-size: .7rem; color: #9fb3e0; } .lg-chip.is-on small { color: var(--muted); }
.lg-chip .t { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .2rem; } .lg-chip .bar { height: 3px; background: rgba(159,179,224,.2); border-radius: 2px; overflow: hidden; } .lg-chip .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4d5a, #9fb3e0); } .lg-chip.is-on .bar { background: var(--line); }
.lg-list-h { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #9fb3e0; font-weight: 700; margin-bottom: .6rem; display: flex; justify-content: space-between; }
.lg-list-h span { letter-spacing: .05em; font-weight: 400; }
.lg-row { display: grid; grid-template-columns: 1fr 76px; gap: .2rem .8rem; padding: .5rem .4rem; border-radius: 4px; cursor: pointer; border: 0; background: transparent; color: #fff; width: 100%; text-align: left; align-items: center; font: inherit; }
.lg-row:hover, .lg-row.is-on { background: rgba(255,255,255,.08); }
.lg-row:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.lg-row b { font-size: .92rem; font-weight: 700; }
.lg-row b small { font-weight: 400; color: #9fb3e0; margin-left: .4rem; font-size: .74rem; }
.lg-row .t { font-size: .84rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.lg-row .bar { grid-column: 1 / -1; height: 3px; background: rgba(159,179,224,.2); border-radius: 2px; overflow: hidden; }
.lg-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4d5a, #9fb3e0); }
.lg-row .f { grid-column: 1 / -1; font-size: .72rem; color: #9fb3e0; }
.lg-bottom { grid-column: 1; grid-row: 3; align-self: end; display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.lg-card { background: rgba(255,255,255,.96); color: var(--text); border-radius: var(--radius); padding: 1rem 1.2rem; width: 340px; max-width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lg-layers { background: rgba(16,32,63,.72); border: 1px solid rgba(159,179,224,.25); border-radius: var(--radius); padding: .8rem 1rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .82rem; }
.lg-switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 700; color: #fff; }
.lg-switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 18px; border-radius: 999px; background: rgba(159,179,224,.35); position: relative; margin: 0; transition: background .2s; cursor: pointer; }
.lg-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.lg-switch input:checked { background: #ff4d5a; }
.lg-switch input:checked::after { transform: translateX(16px); }
.lg-switch input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lg-legend { display: flex; gap: .8rem; margin-top: .5rem; font-size: .74rem; color: #c9d4ee; flex-wrap: wrap; }
.lg-legend i { width: 9px; height: 9px; display: inline-block; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); margin-right: .3rem; }
.lg-zoom { display: inline-flex; align-items: center; background: rgba(16,32,63,.72); border: 1px solid rgba(159,179,224,.25); border-radius: 999px; padding: 3px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lg-zoom button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; font: inherit; font-size: 1.25rem; font-weight: 500; line-height: 1; cursor: pointer; transition: background .2s; }
.lg-zoom button[data-zoom="reset"] { width: auto; min-width: 58px; padding-inline: .6rem; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #c9d4ee; }
.lg-zoom button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.lg-zoom button:disabled { opacity: .35; cursor: default; }
.lg-zoom button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lg-hero > svg { cursor: grab; } .rm svg.is-dragging { cursor: grabbing; }
/* Pendant le glissement : pas de flou d'arrière-plan à recalculer à chaque image, pas de transitions */
.lg-hero.is-dragging .lg-drawer, .lg-hero.is-dragging .lg-layers, .lg-hero.is-dragging .lg-zoom, .lg-hero.is-dragging .lg-modes { backdrop-filter: none; -webkit-backdrop-filter: none; }
.lg-hero.is-dragging .rm-line, .lg-hero.is-dragging .rm-label, .lg-hero.is-dragging .rm-dot { transition: none; }
.lg-hero.is-dragging .rm-flow, .lg-hero.is-dragging .rm-pulse { animation-play-state: paused; }
.lg-zoom-hint { font-size: .72rem; color: #9fb3e0; padding-inline: .8rem .4rem; white-space: nowrap; }
@media (max-width: 640px) { .lg-zoom-hint { display: none; } }
.lg-hero > svg { touch-action: pan-y; }
.rm-land, .rm-grat line { vector-effect: non-scaling-stroke; }
.lg-claim { grid-column: 1; grid-row: 2; align-self: end; margin: 0; color: #9fb3e0; font-size: 1.05rem; pointer-events: none; }
.lg-claim strong { color: #fff; font-weight: 900; }
.lg-claim span { color: #ff4d5a; font-weight: 900; }

/* Bande de chiffres + note + méthodes + secteurs */
.lg-strip { background: var(--navy-2); color: #fff; border-top: 1px solid rgba(159,179,224,.2); }
.lg-strip-inner { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 2.5rem; align-items: center; padding-block: 1.6rem; }
.lg-hl b { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lg-hl span { font-size: .78rem; color: #9fb3e0; }
.lg-strip-note { margin: 0; font-size: .78rem; color: #9fb3e0; max-width: 40rem; justify-self: end; }
.lg-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.lg-method { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; background: #fff; }
.lg-method-tag { display: inline-block; font-size: .7rem; letter-spacing: .18em; font-weight: 800; color: var(--red); margin-bottom: .8rem; }
.lg-method h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: .6rem; }
.lg-method p { color: var(--text-2); font-size: .92rem; margin: 0; }
.lg-sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.lg-sector { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; color: var(--text); transition: transform .3s ease, box-shadow .3s ease; }
.lg-sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.lg-sector-tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: .2rem .7rem; }
.lg-sector h3 { font-size: 1.05rem; font-weight: 900; line-height: 1.3; }
.lg-sector p { color: var(--text-2); font-size: .88rem; margin: 0; flex: 1; }

/* Bannière d'accueil */
.lg-banner { position: relative; overflow: hidden; isolation: isolate; min-height: 560px; display: grid; align-items: center; }
.lg-banner > svg { z-index: 0; opacity: .95; }
.lg-banner::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(11,22,51,.96) 0%, rgba(11,22,51,.82) 38%, rgba(11,22,51,.15) 70%, rgba(11,22,51,0) 100%); pointer-events: none; }
.lg-banner-inner { position: relative; z-index: 1; width: 100%; padding-block: 3.5rem; }
.lg-banner-text { max-width: 560px; }
.lg-banner .eyebrow { color: #ff4d5a; }
.lg-banner h2 { color: #fff; font-size: clamp(1.8rem, 3.3vw, 2.8rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 1rem; }
.lg-banner-lead { color: #c9d4ee; font-weight: 300; font-size: 1.02rem; max-width: 32rem; margin-bottom: 1.6rem; }
.lg-banner-hl { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.lg-banner-hl b { display: block; font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lg-banner-hl span { font-size: .74rem; color: #9fb3e0; }
.lg-banner-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lg-modes-mini .lg-mode { font-size: .78rem; padding: .45rem .9rem; }
.lg-banner-claim { position: absolute; right: clamp(1.2rem, 3vw, 3rem); bottom: 1.2rem; z-index: 1; margin: 0; color: #9fb3e0; font-size: .95rem; }
.lg-banner-claim strong { color: #fff; font-weight: 900; }
.lg-banner-claim span { color: #ff4d5a; font-weight: 900; }

@media (prefers-reduced-motion: reduce) { .rm-flow, .rm-pulse { animation: none; } .lg-drawer { transition: none; } }
@media (max-width: 1100px) { .lg-strip-inner { grid-template-columns: repeat(3, 1fr); } .lg-strip-note { grid-column: 1 / -1; justify-self: start; } .lg-sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
    /* Mobile : titre → pilules → carte (bloc dédié) → fiche / calques → liste */
    .lg-hero { min-height: 0; display: flex; flex-direction: column; gap: 1rem; padding-block: 1.4rem 1.8rem; }
    .lg-hero::before { display: none; }
    .lg-hero > svg { position: relative; inset: auto; order: 3; width: calc(100% - 2rem); height: 82vw; max-height: 560px; margin-inline: 1rem; border-radius: var(--radius); border: 1px solid rgba(159,179,224,.25); }
    .lg-ui { display: contents; }
    .lg-hero > *, .lg-ui > * { min-width: 0; max-width: calc(100% - 2rem); }
    .lg-title { order: 1; margin-inline: 1rem; }
    .lg-hero .lg-modes { order: 2; margin-inline: 1rem; align-self: flex-start; }
    .lg-claim { display: none; }
    .lg-bottom { order: 4; margin-inline: 1rem; }
    .lg-tab, .lg-drawer, .lg-pop { display: none; }
    .lg-chips { display: grid; order: 5; grid-auto-flow: column; grid-auto-columns: 160px; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1rem .4rem; max-width: 100%; scrollbar-width: thin; scrollbar-color: rgba(159,179,224,.4) transparent; }
    /* La fiche réponse passe AVANT la bande de destinations : on tapait un port sur la
       carte et le résultat s'affichait 57 px sous la ligne de flottaison, donc rien ne
       semblait se produire. Elle est maintenant collée sous la carte. */
    .lg-sheet { display: block; order: 4; margin-inline: 1rem; background: rgba(255,255,255,.97); color: var(--text); border-radius: var(--radius); padding: 1rem 1.2rem; }
    .lg-sheet:empty { display: none; } /* aucune fiche tant qu'aucune destination n'est choisie */
    .lg-bottom { order: 6; }
    .lg-methods { grid-template-columns: 1fr; }
    /* Sur téléphone le texte occupe toute la largeur : la carte n'est plus un
       élément d'information à côté du propos, mais une texture derrière lui. Ses
       libellés se superposaient au titre et aux chiffres (constaté sur iPhone le
       19/09/2026). On les retire et on épaissit le voile. */
    .lg-banner::before { background: linear-gradient(180deg, rgba(11,22,51,.96) 0%, rgba(11,22,51,.93) 55%, rgba(11,22,51,.88) 100%); }
    .lg-banner > svg { opacity: .55; }
    .lg-banner .rm-label, .lg-banner .rm-leg,
    .lg-banner .rm-seoul-label, .lg-banner .rm-seoul-sub { display: none; }
}
@media (max-width: 640px) { .lg-strip-inner { grid-template-columns: 1fr 1fr; } .lg-sectors { grid-template-columns: 1fr; } .lg-banner { min-height: 0; } .lg-banner-claim { display: none; } .lg-banner-hl { gap: 1rem; } }

/* Photo non chargée : ni icône cassée ni texte alternatif par-dessus le fond */
img.img-failed { visibility: hidden; }

/* ═══════════════════════════════════════════════════════════════
   Hero d'accueil — « 세 대륙의 관문 · Gateway to three continents » (gw-*)
   Direction C validée le 2026-09-17 (maquette : mockups/home-hero/).
   Photo du pont de Radès teintée navy, carte map-paths.js tracée trait par trait,
   arcs Tunis-Carthage → 11 villes, tableau des départs à palettes. JS : static/js/gateway.js
   ═══════════════════════════════════════════════════════════════ */
.gw { --gw-night: #081230; --gw-coast: rgba(176,204,255,.5); --gw-arc: #ff4150; --gw-lamp: #ffc861; --gw-dusk: #ffe2cf;
      --gw-lat: "Fraunces", Georgia, serif; --gw-mono: "JetBrains Mono", "Noto Sans KR", ui-monospace, monospace;
      position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--gw-night);
      min-height: clamp(660px, 84vh, 800px); display: grid; grid-template-rows: auto 1fr; }
.gw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; z-index: -4; }
.gw-tint { position: absolute; inset: 0; z-index: -3; background:
    linear-gradient(180deg, rgba(7,16,44,.95) 0%, rgba(7,16,44,.8) 52%, rgba(7,16,44,.42) 100%),
    linear-gradient(90deg, rgba(7,16,44,.78) 0%, rgba(7,16,44,.2) 55%, rgba(7,16,44,0) 80%); }
.gw-map { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -2;
          -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 22%); mask-image: linear-gradient(180deg, transparent 6%, #000 22%); }
.gw-land path { fill: rgba(140,178,245,.075); stroke: var(--gw-coast); stroke-width: .8; vector-effect: non-scaling-stroke; }
.gw-cap { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: .76rem; color: rgba(255,255,255,.8); }
.gw-cap strong { color: #fff; letter-spacing: .22em; font-weight: 700; }
.gw-main { width: 100%; align-self: end; padding-block: 1.5rem clamp(2rem, 4vw, 3rem); }
.gw-body { max-width: min(46rem, 50%); }
.gw-kick { font-family: var(--gw-lat); font-style: italic; font-weight: 300; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.2; margin: 0 0 .35rem; color: var(--gw-dusk); }
.gw-title { font-weight: 900; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 1.25rem; color: #fff; text-shadow: 0 2px 40px rgba(0,10,30,.35); }
/* Le masque d'apparition rognait le bas des glyphes coréens (line-height .05 < hauteur
   d'œil de Noto Sans KR) : la réserve passe de .06em à .2em. */
.gw-ln { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.gw-ln > span { display: inline-block; }
.gw-title em { font-style: normal; color: var(--red); }
.gw-lead { max-width: 37rem; font-size: clamp(1rem, 1.35vw, 1.13rem); line-height: 1.75; color: rgba(255,255,255,.9); margin: 0 0 1.6rem; }
.gw-acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.gw-btn-glass { border-color: rgba(255,255,255,.72); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.gw-btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }
.gw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; }
.gw-chips li { display: inline-flex; align-items: center; gap: .55rem; border-radius: 999px; padding: .3rem .9rem .3rem .35rem; font-size: .8rem; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.9); }
.gw-chips b { background: #fff; color: var(--navy); border-radius: 999px; padding: .1rem .65rem; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Carte : arcs, villes, origine (SVG construit par gateway.js) */
.gw-arc { fill: none; stroke: var(--gw-arc); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.gw-arc.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gw-draw .95s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes gw-draw { to { stroke-dashoffset: 0; } }
.gw-flow { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: .015 .06; animation: gw-flow 4s linear infinite; opacity: 0; transition: opacity .6s .9s; }
.gw-city.on .gw-flow { opacity: .8; }
@keyframes gw-flow { to { stroke-dashoffset: -.3; } }
.gw-dot { fill: #fff; }
.gw-halo { fill: rgba(255,255,255,.16); }
.gw-city .gw-dot, .gw-city .gw-halo, .gw-city text { opacity: 0; transition: opacity .45s ease .85s; }
.gw-city.on .gw-dot, .gw-city.on .gw-halo, .gw-city.on text { opacity: 1; }
.gw-city text, .gw-orig text { fill: #fff; font-family: var(--font); font-weight: 700; paint-order: stroke; stroke: rgba(6,12,34,.85); stroke-linejoin: round; }
.gw-city tspan { fill: var(--gw-lamp); font-weight: 500; font-family: var(--gw-mono); }
.gw-plane { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.gw-orig .core { fill: var(--red); stroke: #fff; vector-effect: non-scaling-stroke; stroke-width: 2; }
.gw-orig .ring { fill: none; stroke: var(--gw-arc); stroke-width: 1.5; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: gw-ping 2.4s ease-out infinite; }
.gw-orig .ring.b { animation-delay: 1.2s; }
@keyframes gw-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }

/* Tableau des départs à palettes */
.gw-board { position: absolute; right: 2rem; bottom: 2.5rem; width: 424px; padding: .9rem 1rem .75rem; border-radius: 10px; background: rgba(5,10,28,.84); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px rgba(0,0,0,.4); backdrop-filter: blur(10px); }
@media (min-width: 1441px) { .gw-board { right: calc((100vw - var(--container)) / 2 + 2rem); } }
.gw-bh { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.gw-bh b { font: 700 11px/1 var(--gw-mono); letter-spacing: .16em; color: var(--gw-lamp); }
.gw-bh span { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .06em; }
.gw-row { display: grid; grid-template-columns: 124px 60px 80px minmax(0, 1fr); align-items: center; gap: 8px; height: 34px; border-bottom: 1px solid rgba(255,255,255,.05); }
.gw-hd { height: 26px; font-size: 10.5px; letter-spacing: .08em; color: rgba(255,255,255,.5); border-bottom: 0; }
.gw-cells { display: flex; gap: 2px; }
.gw-c { position: relative; display: inline-grid; place-items: center; width: 17px; height: 24px; border-radius: 2px; background: linear-gradient(#1c2750 50%, #141d40 50%); color: #f6f1e4; font: 700 13.5px/1 var(--gw-mono); }
.gw-c.k { width: 19px; font: 700 12.5px/1 var(--font); }
.gw-c.y { color: var(--gw-lamp); }
.gw-c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
.gw-f { font-size: 11.5px; color: rgba(255,255,255,.64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-bf { display: flex; justify-content: space-between; gap: .6rem; padding-top: .55rem; font-size: 11px; color: rgba(255,255,255,.52); }
.gw-bf a { color: #fff; font-weight: 700; }
.gw-bf a:hover { color: var(--gw-lamp); }

/* Séquence d'ouverture : états de départ seulement quand JS est actif, joués quand gateway.js pose .go */
.js .gw-fade { opacity: 0; transform: translateY(18px); }
.js .gw-ln > span { transform: translateY(108%); }
.js .gw-board { opacity: 0; transform: translateY(24px); }
.js .gw-photo { transform: scale(1.1); }
.js .gw-land path { fill: rgba(140,178,245,0); stroke-dasharray: 1; stroke-dashoffset: 1; }
.gw.go .gw-fade, .gw.go .gw-board { opacity: 1; transform: none; transition: opacity .9s ease var(--d, 0s), transform .9s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
.gw.go .gw-board { --d: 1.2s; }
.gw.go .gw-ln > span { transform: none; transition: transform 1s cubic-bezier(.2,.75,.1,1) var(--d, 0s); }
.gw.go .gw-photo { transform: none; transition: transform 3.5s cubic-bezier(.2,.7,.1,1); }
.gw.go .gw-land path { stroke-dashoffset: 0; fill: rgba(140,178,245,.075); transition: stroke-dashoffset 2.6s cubic-bezier(.4,0,.2,1), fill 1.4s ease 1.6s; }

@media (max-width: 1100px) { .gw-board { width: 360px; } .gw-row { grid-template-columns: 124px 60px 80px; } .gw-f { display: none; } .gw-body { max-width: 56%; } }
@media (max-width: 860px) {
    .gw { min-height: 0; grid-template-rows: 320px auto auto; }
    .gw-map { height: 380px; }
    .gw-cap { grid-row: 1; align-self: start; }
    .gw-cap span { display: none; }
    .gw-main { grid-row: 2; padding-top: 0; }
    .gw-body { max-width: none; }
    .gw-board { grid-row: 3; position: relative; right: auto; bottom: auto; width: auto; margin: 0 1.1rem 2rem; }
    .gw-tint { background: linear-gradient(180deg, rgba(7,16,44,.9) 0%, rgba(7,16,44,.55) 36%, rgba(7,16,44,.92) 58%); }
}
@media (prefers-reduced-motion: reduce) {
    .gw *, .gw *::before, .gw *::after { animation: none !important; transition: none !important; }
    .js .gw-fade, .js .gw-board, .js .gw-ln > span, .js .gw-photo { opacity: 1; transform: none; }
    .js .gw-land path { stroke-dashoffset: 0; fill: rgba(140,178,245,.075); }
    .gw-arc.draw { stroke-dashoffset: 0; }
    .gw-city .gw-dot, .gw-city .gw-halo, .gw-city text { opacity: 1; }
}

/* ── Page ambassade (em-*) ─────────────────────────────────── */
.em-hero { position: relative; min-height: clamp(460px, 68vh, 720px); display: flex; background: var(--navy-2); color: #fff; overflow: hidden; isolation: isolate; }
.em-hero-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% 30%; animation: em-kb 18s ease-out both; }
@keyframes em-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.em-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,32,63,.95) 0%, rgba(16,32,63,.82) 42%, rgba(16,32,63,.2) 100%), linear-gradient(0deg, rgba(16,32,63,.8) 0%, rgba(16,32,63,0) 40%); }
.em-hero-inner { display: flex; flex-direction: column; justify-content: space-between; padding-block: 1.6rem 3.5rem; width: 100%; }
.em-hero-text { max-width: 44rem; margin-top: auto; }
.em-coa { height: 86px; width: auto; margin-bottom: 1.2rem; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.em-title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; color: #fff; font-weight: 900; letter-spacing: -0.04em; margin: 0 0 1rem; }
.em-kicker { font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 300; color: rgba(255,255,255,.9); margin-bottom: 2rem; }

.em-about { padding-block: 5rem; }
.em-about-grid { display: grid; gap: 1.5rem 4rem; align-items: start; }
@media (min-width: 900px) { .em-about-grid { grid-template-columns: 5fr 7fr; } }
.em-missions { display: grid; gap: 1.2rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.em-mission { position: relative; overflow: hidden; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.em-mission h3 { font-size: 1.15rem; font-weight: 800; margin: 1rem 0 .5rem; }
.em-mission p { font-size: .92rem; color: var(--muted); margin: 0; }

.em-message { padding-block: 5rem; background: var(--panel); }
.em-message-grid { display: grid; gap: 2.5rem 4.5rem; align-items: center; }
@media (min-width: 900px) { .em-message-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.em-portrait { position: relative; margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); max-width: 520px; }
.em-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.em-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4.5rem 1.4rem 1.3rem; color: #fff; background: linear-gradient(0deg, rgba(16,32,63,.97) 0%, rgba(16,32,63,.85) 45%, rgba(16,32,63,0) 100%); display: flex; flex-direction: column; }
.em-portrait figcaption strong { font-size: 1.35rem; font-weight: 900; color: #fff; }
.em-portrait figcaption span { font-size: .85rem; color: rgba(255,255,255,.8); }
.em-letter { position: relative; }
.em-letter::before { content: "\201C"; position: absolute; top: -3.2rem; right: 0; font: 900 11rem/1 Georgia, serif; color: var(--red); opacity: .12; pointer-events: none; }
.em-letter-body { margin-top: 1.4rem; border-left: 3px solid var(--red); padding-left: 1.4rem; }
.em-letter-body p { font-size: 1.05rem; line-height: 1.85; color: var(--text-2); margin: 0 0 1.1rem; }
/* Chapô et phrase en exergue (maquette B1, 2026-09-20) : le premier paragraphe donne le ton,
   la phrase choisie dans le back-office est reprise sur un filet rouge, après son paragraphe. */
.em-letter-body p.em-lead { font-size: 1.24rem; line-height: 1.78; font-weight: 700; color: var(--navy-2); }
.em-pull { margin: 1.9rem 0 1.7rem -1.4rem; padding: 1.2rem 1.4rem 1.2rem 1.6rem; border-left: 3px solid var(--red);
           background: linear-gradient(90deg, rgba(231, 0, 19, .06), rgba(231, 0, 19, 0)); border-radius: 0 12px 12px 0; }
.em-pull p { font-size: 1.08rem; font-weight: 500; line-height: 1.72; color: var(--navy-2); word-break: keep-all; margin: 0; }
.em-pull strong { font-weight: 800; }
.em-signature { margin: 1.8rem 0 0 1.4rem; display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--navy); }
.em-sign-hand { font-family: "Mrs Saint Delafield", "Brush Script MT", cursive; font-size: clamp(2.3rem, 3.6vw, 3rem); line-height: .9; color: var(--navy); transform: rotate(-4deg); transform-origin: left bottom; margin-left: -.3rem; }
.em-sign-line { width: 150px; height: 12px; color: var(--red); margin: -.2rem 0 .5rem; }
.em-sign-line path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: em-draw 1.6s ease .4s forwards; }
@keyframes em-draw { to { stroke-dashoffset: 0; } }
.em-sign-name { font-weight: 700; font-size: 1rem; }
.em-portrait figcaption strong small { font-size: .8em; font-weight: 500; color: rgba(255,255,255,.82); margin-left: .3rem; }
.em-press { padding-block: 5rem; background: var(--panel); }
.em-press-grid { display: grid; gap: 1.2rem; margin-top: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .em-press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .em-press-grid { grid-template-columns: repeat(3, 1fr); } }
.em-press-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.em-press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-top-color: var(--red); color: var(--text); }
.em-press-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.em-press-outlet { font-family: Georgia, "Times New Roman", "Noto Serif KR", serif; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.em-press-lang { font-size: .66rem; letter-spacing: .12em; font-weight: 700; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .5rem; white-space: nowrap; }
.em-press-card h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.45; margin: 0; }
.em-press-card p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.em-press-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--dim); padding-top: .7rem; border-top: 1px solid var(--line); }
.em-press-more { font-weight: 700; color: var(--red); }

.em-bio { padding-block: 5rem; }
.em-bio-grid { display: grid; gap: 2.5rem 4.5rem; align-items: start; }
@media (min-width: 900px) { .em-bio-grid { grid-template-columns: 5fr 7fr; } .em-bio-head { position: sticky; top: 110px; } }
.em-bio-title { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }
.em-edu { margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--panel); }
.em-edu-label { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--navy); margin: 0 0 .5rem; }
.em-edu-label .icon { color: var(--red); }
.em-edu ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); font-size: .95rem; line-height: 1.7; }
.em-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.em-timeline::before { content: ""; position: absolute; left: 7.4rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.em-timeline li { position: relative; display: grid; grid-template-columns: 7.4rem 1fr; gap: 1.6rem; padding: .95rem 0; }
.em-timeline li::before { content: ""; position: absolute; left: calc(7.4rem - 6px); top: 1.35rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-light); }
.em-timeline li.is-current::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 6px rgba(231,0,19,.15); }
.em-period { font-weight: 800; font-size: .88rem; color: var(--navy); padding-top: .15rem; padding-right: .6rem; }
.em-timeline h3 { font-size: 1.05rem; font-weight: 800; margin: 0; padding-left: .6rem; }
.em-timeline p { font-size: .9rem; color: var(--muted); margin: .2rem 0 0; padding-left: .6rem; }
@media (max-width: 560px) {
    .em-timeline::before { left: 6px; }
    .em-timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.8rem; }
    .em-timeline li::before { left: 0; }
    .em-timeline h3, .em-timeline p { padding-left: 0; }
}

.em-contact { padding-block: 5rem; background: var(--navy-2); color: #fff; }
.em-contact .section-title { color: #fff; }
.em-contact .section-head p { color: rgba(255,255,255,.72); }
.em-contact-grid { display: grid; gap: 2rem; margin-top: 2.2rem; }
@media (min-width: 900px) { .em-contact-grid { grid-template-columns: 1fr 1fr; } }
.em-contact-col { display: flex; flex-direction: column; gap: 1.1rem; align-items: stretch; }
.em-contact-col > .btn { align-self: flex-start; }
.em-col-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: 1.25rem; font-weight: 800; color: #fff; margin: 0; }
.em-col-title .icon { color: #ff8a93; }
.em-col-title small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-light); font-weight: 700; }
.em-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.em-social a { padding: .5rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; font-size: .88rem; font-weight: 600; }
.em-social a:hover { border-color: #ff8a93; color: #ff8a93; }
.em-sources { padding-block: 2rem 0; }
@media (max-width: 720px) { .em-about, .em-message, .em-bio, .em-press, .em-contact { padding-block: 3rem; } }
@media (prefers-reduced-motion: reduce) { .em-hero-media { animation: none; } .em-sign-line path { animation: none; stroke-dashoffset: 0; } }

/* ── /about/ : option C, bandeau ambassade + agences partenaires (ab-*) ── */
.ab-band { display: grid; grid-template-columns: 1fr; align-items: stretch; overflow: hidden; border-radius: 14px; background: var(--navy-2); color: #fff; box-shadow: var(--shadow); transition: transform .25s; }
.ab-band:hover { transform: translateY(-3px); color: #fff; }
@media (min-width: 760px) { .ab-band { grid-template-columns: minmax(0, 1fr) 260px; } }
.ab-band-main { display: flex; gap: 1.6rem; align-items: center; padding: 2.2rem clamp(1.4rem, 3vw, 2.6rem); }
.ab-coa { height: 92px; width: auto; flex: none; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.ab-kicker { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--navy-light); margin: 0 0 .4rem; }
.ab-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; color: #fff; margin: 0 0 .5rem; letter-spacing: -0.02em; }
.ab-sub { color: rgba(255,255,255,.8); margin: 0 0 1.1rem; }
.ab-cta { font-weight: 700; color: #ff8a93; }
.ab-band:hover .ab-cta { color: #fff; }
.ab-photo { position: relative; min-height: 220px; }
.ab-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ab-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy-2) 0%, rgba(16,32,63,0) 45%); }
@media (max-width: 759px) { .ab-photo { min-height: 260px; } .ab-photo::before { background: linear-gradient(0deg, rgba(16,32,63,0) 60%, var(--navy-2) 100%); } }
@media (max-width: 520px) { .ab-band-main { flex-direction: column; align-items: flex-start; } .ab-coa { height: 72px; } }
.ab-partner-label { margin: 2.2rem 0 .9rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--dim); display: flex; align-items: center; gap: 1rem; }
.ab-partner-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ab-agencies { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ab-agencies { grid-template-columns: 1fr 1fr; } }
.ab-agency { display: flex; flex-direction: column; padding: 1.8rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.ab-agency:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-top-color: var(--red); color: var(--text); }
.ab-agency-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; min-height: 56px; }
.ab-logo { max-height: 56px; max-width: 150px; width: auto; }
.ab-logo.tia-logo { filter: brightness(0) saturate(100%) invert(14%) sepia(30%) saturate(2000%) hue-rotate(205deg) brightness(90%); }
.ab-figures { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.ab-figures span { font-size: .78rem; font-weight: 700; color: var(--navy); background: var(--panel-2); border-radius: 999px; padding: .25rem .7rem; white-space: nowrap; }
.ab-agency .card-text { flex: 1; }
.ab-agency .card-more { display: inline-block; margin-top: 1rem; font-size: .88rem; font-weight: 700; color: var(--red); }

/* ════════════════════════════════════════════════════════════════
   Pages éditoriales (fp-*) — templates/pages/feature.html
   Tunisie × Corée (/about/korea/) et TIA (/about/tia/) : sections rendues dans l'ordre des blocs JSON.
   Ni fiche contact FIPA/ambassade ni bandeau FIPA sur ces pages (demande de l'ambassade, 2026-09-17).
   ════════════════════════════════════════════════════════════════ */
.fp-hero { position: relative; min-height: clamp(460px, 64vh, 680px); display: flex; background: var(--navy-2); color: #fff; overflow: hidden; isolation: isolate; }
.fp-hero-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 60% 35%; }
.fp-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,32,63,.96) 0%, rgba(16,32,63,.84) 45%, rgba(16,32,63,.25) 100%), linear-gradient(0deg, rgba(16,32,63,.9) 0%, rgba(16,32,63,0) 45%); }
.fp-hero-inner { display: flex; flex-direction: column; gap: 2rem; padding-block: 1.6rem 3rem; width: 100%; }
.fp-hero-text { max-width: 46rem; margin-top: auto; }
.fp-flags { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem; }
.fp-flags img { height: 34px; width: auto; border-radius: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.35); background: #fff; }
.fp-flags span { font-weight: 300; font-size: 1.4rem; color: rgba(255,255,255,.7); }
.fp-hero-logo { display: inline-flex; margin: 0 0 1.4rem; }
.fp-hero-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); } /* logo passé en blanc sur le fond navy */
.fp-title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; color: #fff; font-weight: 900; letter-spacing: -0.04em; margin: 0 0 1rem; text-wrap: balance; }
.fp-kicker { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 300; color: rgba(255,255,255,.9); margin: 0; max-width: 40rem; }
.fp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0; border-top: 1px solid rgba(255,255,255,.22); }
.fp-facts > div { padding: 1rem 1.2rem 0 0; display: flex; flex-direction: column-reverse; }
.fp-facts dt { font-size: .78rem; color: rgba(255,255,255,.72); line-height: 1.4; }
.fp-facts dd { margin: 0 0 .15rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fp-credit { position: absolute; right: 1rem; bottom: .6rem; margin: 0; font-size: .68rem; color: rgba(255,255,255,.6); max-width: 60%; text-align: right; }
.fp-subnav { position: sticky; top: 76px; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.fp-subnav-in { display: flex; gap: .4rem 1.6rem; overflow-x: auto; scrollbar-width: none; }
.fp-subnav-in a { white-space: nowrap; padding: .9rem 0; font-size: .9rem; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; }
.fp-subnav-in a:hover { color: var(--red); border-bottom-color: var(--red); }
.fp-sec { padding-block: 4.5rem; scroll-margin-top: 120px; }
.fp-sec.is-alt { background: var(--panel); }
.fp-p { color: var(--text-2); line-height: 1.85; margin: 0 0 1rem; max-width: 46rem; }
.fp-date { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--red); margin: 0 0 .4rem; font-variant-numeric: tabular-nums; }
.fp-source { display: inline-block; font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.fp-source:hover { color: var(--red); }
/* Vue d'ensemble */
.fp-overview-grid { display: grid; gap: 1.5rem 4rem; align-items: start; }
@media (min-width: 960px) { .fp-overview-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.fp-quote { margin: 1.6rem 0 0; padding: 1.2rem 1.4rem; border-left: 3px solid var(--red); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.fp-quote p { margin: 0; font-size: 1.12rem; font-weight: 700; color: var(--navy); line-height: 1.6; }
.fp-quote cite { display: block; margin-top: .4rem; font-style: normal; font-size: .8rem; color: var(--muted); }
/* Événement mis en avant */
.fp-visit-card { display: grid; gap: 2rem 3.5rem; margin-top: 2.2rem; align-items: start; }
@media (min-width: 1024px) { .fp-visit-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.fp-visit-media { display: grid; gap: .8rem; }
.fp-visit-media.is-multi { grid-template-columns: 1fr 1fr; }
.fp-visit-media.is-multi figure:first-child { grid-column: 1 / -1; }
.fp-visit-media figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--navy-2); }
.fp-visit-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fp-visit-media.is-multi figure:not(:first-child) img { aspect-ratio: 4 / 3; object-position: 50% 30%; } /* photos portrait : garder les visages */
.fp-visit-media.is-multi figure:nth-child(2):last-child { grid-column: 1 / -1; } /* 2 photos : la seconde en pleine largeur */
.fp-visit-media.is-multi figure:nth-child(2):last-child img { aspect-ratio: 16 / 10; }
.fp-visit-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .6rem; font-size: .76rem; color: #fff; background: linear-gradient(0deg, rgba(16,32,63,.9), rgba(16,32,63,0)); line-height: 1.45; }
.fp-visit-media figcaption span { display: block; font-size: .66rem; color: rgba(255,255,255,.7); }
.fp-visits { display: grid; }
.fp-visits > .fp-visit-card + .fp-visit-card { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .fp-visit-card.no-media { grid-template-columns: minmax(0, 1fr); } .fp-visit-card.no-media .fp-points { grid-template-columns: 1fr 1fr; column-gap: 2.8rem; } }
.fp-badge { display: inline-block; background: var(--red); color: #fff; font-size: .7rem; letter-spacing: .04em; padding: .12rem .5rem; border-radius: 3px; margin-right: .6rem; vertical-align: .08em; }
.fp-occasion { margin: 0 0 1.1rem; padding: .8rem 1rem; background: rgba(26, 43, 95, .05); border-left: 3px solid var(--navy); border-radius: 0 6px 6px 0; font-size: .95rem; line-height: 1.7; color: var(--text); max-width: 52rem; }
.fp-visit-card.is-latest .fp-occasion { border-left-color: var(--red); }
.fp-visit-body .fp-source { margin-right: 1.2rem; }
.fp-visit-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; margin: 0 0 1rem; text-wrap: balance; word-break: keep-all; }
.fp-points { list-style: none; margin: 1.2rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.fp-points li { position: relative; padding-left: 1.4rem; color: var(--text-2); font-size: .95rem; line-height: 1.65; }
.fp-points li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--red); }
/* Chronologie condensée : une ligne par jalon, détail au clic (<details>) ; filtres et « 더 보기 » posés par site.js */
.fp-tl { margin-top: 2rem; }
.fp-tl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin-bottom: 1.2rem; }
.fp-tl-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.fp-tl-filters button, .fp-tl-toggle { font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; border-radius: 999px; padding: .4rem .95rem; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); transition: background .2s, color .2s, border-color .2s; }
.fp-tl-filters button small { font-weight: 500; opacity: .7; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.fp-tl-filters button:hover, .fp-tl-toggle:hover { border-color: var(--navy); color: var(--navy); }
.fp-tl-filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.fp-tl-toggle { border-color: transparent; background: transparent; color: var(--navy); padding-inline: .4rem; text-decoration: underline; text-underline-offset: 3px; }
.fp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.fp-timeline::before { content: ''; position: absolute; top: 1.2rem; bottom: 1.2rem; left: 6.4rem; width: 2px; background: var(--line-2); }
.fp-timeline li { position: relative; }
.fp-timeline li::before { content: ''; position: absolute; left: calc(6.4rem - 5px); top: 1.15rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); z-index: 1; }
.fp-timeline li.is-first::before, html:not(.js) .fp-timeline li:first-child::before { border-color: var(--red); background: var(--red); }
.fp-timeline summary { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; gap: 0 2rem; align-items: baseline; padding: .8rem .8rem .8rem 0; border-radius: 10px; cursor: pointer; list-style: none; transition: background .2s; }
.fp-timeline summary::-webkit-details-marker { display: none; }
.fp-timeline summary:hover { background: rgba(26, 43, 95, .05); }
.fp-timeline summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.fp-tl-date { display: flex; flex-direction: column; text-align: right; padding-right: .2rem; line-height: 1.2; }
.fp-tl-date b { font-size: 1.1rem; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fp-tl-date span { font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.fp-tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; padding-left: .6rem; }
.fp-tl-kind { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--navy); background: var(--panel-2); padding: .15rem .6rem; border-radius: 999px; }
.fp-sec.is-alt .fp-tl-kind { background: #fff; }
.fp-tl-title { font-size: 1rem; font-weight: 700; line-height: 1.45; color: var(--text); }
details[open] > summary .fp-tl-title { font-weight: 800; }
.fp-tl-chev { width: .55rem; height: .55rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s; align-self: center; margin-right: .3rem; }
details[open] > summary .fp-tl-chev { transform: rotate(-135deg); }
.fp-tl-body { display: grid; gap: 1.2rem; margin: 0 0 1rem calc(5.4rem + 2.6rem); padding: .2rem 1rem 0 0; }
.fp-tl-body.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
.fp-tl-body p { font-size: .92rem; color: var(--text-2); margin: 0 0 .5rem; line-height: 1.75; max-width: 44rem; }
.fp-tl-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline; }
.fp-tl-links:empty { display: none; }
.fp-tl-photo { margin: 0; border-radius: 10px; overflow: hidden; align-self: start; }
.fp-tl-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 10px; }
.fp-tl-photo figcaption { font-size: .66rem; color: var(--dim); padding-top: .3rem; }
.fp-tl-more { display: block; width: 100%; margin-top: 1rem; padding: .85rem 1rem; font: inherit; font-size: .9rem; font-weight: 700; color: var(--navy); background: #fff; border: 1px dashed var(--line-2); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.fp-tl-more:hover { border-color: var(--navy); background: var(--panel-2); }
@media (max-width: 860px) {
  .fp-timeline::before { left: .35rem; }
  .fp-timeline li::before { left: 0; top: 1.05rem; }
  .fp-timeline summary { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; padding-left: 1.8rem; }
  .fp-tl-date { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: .5rem; text-align: left; }
  .fp-tl-head { padding-left: 0; }
  .fp-tl-body, .fp-tl-body.has-photo { grid-template-columns: 1fr; margin-left: 1.8rem; }
  .fp-tl-photo { max-width: 420px; }
}
/* Tuiles (accords, missions, services) */
.fp-tiles { display: grid; gap: 1rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.fp-tiles.is-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.fp-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.3rem; }
.fp-sec:not(.is-alt) .fp-tile { background: var(--panel); border-color: transparent; }
.fp-tile-ico { display: inline-flex; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; background: var(--panel-2); color: var(--navy); margin-bottom: .9rem; }
.fp-sec:not(.is-alt) .fp-tile-ico { background: #fff; }
.fp-tile h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 .4rem; line-height: 1.45; }
.fp-tile p:not(.fp-date) { font-size: .9rem; color: var(--text-2); margin: 0; line-height: 1.7; }
/* Chiffres + cartes */
.fp-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 2.2rem 0 1.6rem; border-block: 1px solid var(--line-2); }
.fp-figs > div { padding: 1.2rem 1.2rem 1.1rem 0; display: flex; flex-direction: column; gap: .2rem; }
.fp-figs b { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 900; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fp-figs span { font-size: .88rem; color: var(--text-2); }
.fp-figs small { font-size: .74rem; color: var(--muted); }
.fp-figs-src { font-size: .72rem; color: var(--dim); margin: -.8rem 0 1.6rem; }
.fp-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.fp-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.fp-card h3 { font-size: 1.08rem; font-weight: 800; margin: 0 0 .5rem; line-height: 1.45; }
.fp-card p { font-size: .92rem; color: var(--text-2); margin: 0; line-height: 1.75; }
.fp-sources { padding-block: 1rem 3rem; }

/* Bandeau « voir la fiche » (bloc banner) — renvoi vers une page institution */
.fp-band-sec { padding-block: 2.6rem; }
.fp-band { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: center; padding: 1.8rem clamp(1.3rem, 3vw, 2.4rem); border-radius: 14px; background: var(--navy-2); color: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.fp-band:hover { transform: translateY(-3px); color: #fff; }
@media (min-width: 760px) { .fp-band { grid-template-columns: auto minmax(0, 1fr) auto; } }
.fp-band-logo { flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.fp-band-logo img { width: 100%; height: 100%; object-fit: contain; }
.fp-band-text { display: block; }
.fp-band-kicker { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--navy-light); margin-bottom: .35rem; }
.fp-band-title { display: block; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; letter-spacing: -0.01em; margin-bottom: .45rem; }
.fp-band-lead { display: block; color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.7; margin-bottom: .8rem; }
.fp-band-cta { display: block; font-weight: 700; color: #ff8a93; }
.fp-band:hover .fp-band-cta { color: #fff; }
.fp-band-facts { display: flex; gap: 1.6rem; }
.fp-band-facts > span { display: flex; flex-direction: column; text-align: left; }
.fp-band-facts b { font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.fp-band-facts small { font-size: .78rem; color: rgba(255,255,255,.7); }
@media (min-width: 760px) { .fp-band-facts { padding-left: 1.6rem; border-left: 1px solid rgba(255,255,255,.18); } }

/* Encadré « projet phare » (bloc flagship) — TUNEPS sur la page Corée */
.fp-flag-sec { padding-block: 1rem 2.6rem; }
.fp-flag { position: relative; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--panel) 0, #fff 18rem); padding: clamp(1.5rem, 3.4vw, 2.8rem); box-shadow: var(--shadow); overflow: hidden; }
.fp-flag::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 50%, var(--navy) 50% 100%); }
.fp-flag-logo { float: right; display: inline-flex; align-items: center; gap: .9rem; margin: 0 0 1rem 1.5rem; padding: .3rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; line-height: 1; }
.fp-flag-logo i { font-style: normal; font-weight: 300; font-size: 1.2rem; color: var(--dim); }
.fp-flag-logo img { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .fp-flag-logo { float: none; margin: 0 0 1rem; } .fp-flag-logo img { height: 38px; } }
.fp-flag-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; padding: .3rem .75rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.fp-flag-eyebrow svg { flex: none; }
.fp-flag-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; margin: 0 0 .4rem; }
.fp-flag-kicker { font-size: .86rem; font-weight: 700; color: var(--red-2); margin: 0 0 .7rem; }
.fp-flag-lead { font-size: 1.05rem; color: var(--text-2); max-width: 52rem; margin: 0; }
.fp-flag-grid { display: grid; gap: 2rem; margin-top: 1.8rem; }
@media (min-width: 960px) { .fp-flag-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; } }
.fp-flag-main p { font-size: .95rem; color: var(--text-2); line-height: 1.8; margin: 0 0 1rem; }
.fp-flag-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; margin: 1.6rem 0 0; border-top: 1px solid var(--line-2); }
.fp-flag-figs > div { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fp-flag-figs dd { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 900; color: var(--navy); letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: normal; word-break: keep-all; }
.fp-flag-figs dt { font-size: .86rem; color: var(--text-2); }
.fp-flag-figs small { font-size: .74rem; color: var(--muted); }
.fp-flag-phases { list-style: none; margin: 0; padding: 0; position: relative; }
.fp-flag-phases::before { content: ""; position: absolute; left: .4rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line-2); }
.fp-flag-phases li { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: 0 0 1.4rem 1.9rem; font-size: .88rem; color: var(--text-2); line-height: 1.7; }
.fp-flag-phases li:last-child { padding-bottom: 0; }
.fp-flag-phases li::before { content: ""; position: absolute; left: 0; top: .35rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.fp-flag-phases li.is-current::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(231, 0, 19, .15); }
.fp-flag-phases b { font-size: 1rem; font-weight: 800; color: var(--text); }
.fp-flag-period { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.fp-flag-period em { font-style: normal; font-size: .68rem; padding: .1rem .5rem; border-radius: 999px; background: var(--panel-red); color: var(--red-2); }
.fp-flag-reach { display: grid; gap: 1.2rem; align-items: center; margin-top: 2rem; padding: 1.4rem clamp(1.1rem, 2.4vw, 1.8rem); border-radius: 12px; background: var(--navy-2); color: #fff; }
@media (min-width: 860px) { .fp-flag-reach { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.4rem; } }
.fp-flag-reach h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .4rem; }
.fp-flag-reach p { margin: 0; font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.82); }
.fp-flag-reach ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.fp-flag-reach li { padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); font-size: .82rem; font-weight: 700; }
.fp-flag-src { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 1.4rem 0 0; font-size: .74rem; color: var(--dim); }
.fp-flag-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.fp-flag-src a:hover { color: var(--navy); }
@media (max-width: 640px) { .fp-flag-lead { font-size: .96rem; } .fp-flag-grid { gap: 1.4rem; margin-top: 1.2rem; } .fp-flag-figs { gap: 0 1rem; margin-top: 1rem; } .fp-flag-figs dd { font-size: 1.2rem; white-space: nowrap; } .fp-flag-figs > div { padding: .75rem 0; } .fp-flag-phases li { padding-bottom: 1rem; } .fp-flag-reach { margin-top: 1.4rem; } }

/* ── Carrousel photo (gl-*) ─────────────────────────────────── */
.gl { margin: 2.2rem 0 1rem; }
.gl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.gl-eyebrow { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--red); margin: 0 0 .3rem; }
.gl-title { font-size: 1.4rem; font-weight: 800; margin: 0; }
.gl-controls { display: flex; align-items: center; gap: .5rem; }
.gl-count { font-size: .85rem; color: var(--muted); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.gl-count b { color: var(--navy); }
.gl-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gl-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.gl-btn:disabled { opacity: .35; cursor: default; background: #fff; color: var(--navy); border-color: var(--line-2); }
.gl-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 14px; scrollbar-width: none; outline: none; }
.gl-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .gl-track { grid-auto-columns: 82%; } }
.gl-slide { position: relative; margin: 0; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: var(--navy-2); aspect-ratio: 16 / 9; max-width: 100%; }
.gl-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s ease; }
.gl-slide.is-active img { transform: scale(1.04); }
.gl-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.4rem 1.1rem; color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(16,32,63,.9), rgba(16,32,63,0)); display: flex; flex-direction: column; gap: .2rem; }
.gl-slide figcaption small { font-weight: 400; font-size: .75rem; color: rgba(255,255,255,.75); }
.gl-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .9rem; }
.gl-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .25s, background .25s; }
.gl-dots button[aria-current="true"] { width: 26px; background: var(--red); }
@media (prefers-reduced-motion: reduce) { .gl-track { scroll-behavior: auto; } .gl-slide img { transition: none; } .gl-slide.is-active img { transform: none; } }

/* ═══════════════════════════════════════════════════════════════
   Initiative phare de secteur (ini-*) — Roadshow automobile
   Tunisie–Corée 2026 : affiche, visite, chiffres, logos des
   partenaires par pays, success story (pas de téléchargement).
   ═══════════════════════════════════════════════════════════════ */
.ini-live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.ini-live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: ini-pulse 1.8s ease-out infinite; }
@keyframes ini-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.ini { overflow-x: clip; padding-block: 4.5rem 2rem; background: linear-gradient(180deg, var(--panel) 0, #fff 30rem); }
.ini-top { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .ini-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.ini-poster { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(16,32,63,.2); aspect-ratio: 16 / 9; max-width: 100%; background: #1b5a4a; }
.ini-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ini-poster:hover img { transform: scale(1.03); }
.ini-kicker { display: inline-flex; align-items: center; gap: .7rem; }
.ini-title { font-size: clamp(1.7rem, 2.9vw, 2.45rem); font-weight: 900; line-height: 1.18; letter-spacing: -0.03em; }
.ini-en { overflow-wrap: anywhere; margin: .4rem 0 0; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ini-text { color: var(--text); margin: 1rem 0 0; }

/* Mention de la visite (une ligne, pas de programme) */
.ini-visit { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); }
.ini-visit-ico { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--panel-red); color: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.ini-visit p { margin: 0; line-height: 1.4; }
.ini-visit-when { font-size: .82rem; color: var(--muted); }
.ini-visit-when b { color: var(--red); }
.ini-visit-t { font-weight: 700; font-size: .95rem; color: var(--navy); }

.ini-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0 0; }
.ini-fact { display: flex; flex-direction: column; padding: .2rem 1rem; border-left: 1px solid var(--line); }
.ini-fact:first-child { padding-left: 0; border-left: 0; }
.ini-fact dd { order: -1; margin: 0; font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 900; color: var(--navy); line-height: 1.1; letter-spacing: -0.03em; }
.ini-fact dt { font-size: .8rem; font-weight: 500; line-height: 1.35; margin-top: .2rem; }
.ini-fact .ini-fact-d { order: 0; font-size: .7rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: .1rem; }

.ini-h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 900; margin: 0 0 1rem; }

/* Partenaires : logos par pays, groupes côte à côte (5 TN · 2 KR) */
.ini-bottom { margin-top: 2.8rem; }
.ini-partners .eyebrow { margin-bottom: .2rem; }
.ini-pgroups { display: grid; gap: 1.2rem 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ini-pgroups { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr); } .ini-pgroups .ini-logos { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.ini-pcountry { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; font-size: .8rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.ini-pcountry img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.ini-logos { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); }
.ini-logo { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.ini-logo-box { display: flex; align-items: center; justify-content: center; gap: .6rem; height: 78px; padding: .7rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .25s, box-shadow .25s, transform .25s; }
.ini-logo:hover .ini-logo-box { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.ini-logo-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ini-logo.has-label .ini-logo-box { flex-direction: column; gap: .25rem; padding-block: .5rem; }
.ini-logo.has-label img { max-height: 40px; }
.ini-logo-box b { font-size: .72rem; color: var(--navy); line-height: 1.2; white-space: nowrap; }
.ini-logo small { font-size: .72rem; color: var(--muted); line-height: 1.35; text-align: center; }

@media (max-width: 559px) { .ini-facts { grid-template-columns: 1fr; gap: .8rem; } .ini-fact { padding: 0; border-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ini-live::after { animation: none; } }

/* Replay vidéo de l'initiative (webinaire) : une ligne sous la visite, lecture dans une fenêtre */
.ini-video { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: .8rem; padding: .7rem;
             background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 12px; }
.ini-video p { margin: 0; line-height: 1.4; }
.ini-video-when { font-size: .82rem; color: var(--muted); }
.ini-video-when b { color: var(--navy); }
.ini-video-t { font-weight: 700; font-size: .95rem; color: var(--navy); margin-top: .1rem !important; }
.ini-video-l { margin-top: .35rem !important; font-size: .82rem; display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.ini-video-l button { font: inherit; font-weight: 700; color: var(--red); background: none; border: 0; padding: 0; cursor: pointer; }
.ini-video-l a { color: var(--muted); }
@media (max-width: 559px) { .ini-video { grid-template-columns: 112px minmax(0, 1fr); gap: .7rem; } .ini-video-t { font-size: .88rem; } }

/* ═══════════════════════════════════════════════════════════════
   Vidéo chargée au clic (vd-*) — partials/video_cover.html :
   couverture aux couleurs du site, lecteur youtube-nocookie au clic,
   sur place ou dans une fenêtre (<dialog>).
   ═══════════════════════════════════════════════════════════════ */
.vd-cover { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden;
            border-radius: var(--radius); color: #fff; text-align: left; font: inherit; font-size: 1rem;
            background: radial-gradient(120% 90% at 85% 10%, rgba(231,0,19,.55), rgba(231,0,19,0) 55%), linear-gradient(135deg, #0f1e45 0%, var(--navy) 60%, #10203f 100%); }
.vd-cover::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px); }
.vd-in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: .7em; padding: 7% 7% 6%; }
.vd-top { display: flex; align-items: center; gap: .5rem; font-size: .72em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.vd-top img { width: 22px; height: 15px; border-radius: 2px; }
.vd-t { font-size: 1.55em; font-weight: 900; line-height: 1.18; letter-spacing: -.02em; max-width: 15em; word-break: keep-all; }
.vd-t small { display: block; margin-top: .45em; font-size: .5em; font-weight: 600; letter-spacing: .02em; opacity: .8; }
.vd-b { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .72em; opacity: .85; }
.vd-dur { background: rgba(0,0,0,.55); border-radius: 6px; padding: .15em .5em; font-weight: 700; font-variant-numeric: tabular-nums; }
.vd-play { position: absolute; z-index: 2; left: 50%; top: 64%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--red);
           display: grid; place-items: center; box-shadow: 0 12px 34px rgba(231,0,19,.45); transition: transform .25s ease; }
.vd-play::before { content: ''; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.vd-cover:hover .vd-play, .vd-cover:focus-visible .vd-play { transform: scale(1.08); }
.vd-cover:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.vd-sm { font-size: .5rem; border-radius: 8px; }
.vd-sm .vd-in { padding: 6% 7%; }
.vd-sm .vd-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; top: 55%; }
.vd-sm .vd-play::before, .vd-xs .vd-play::before { border-width: 8px 0 8px 13px; margin-left: 4px; }
.vd-xs { font-size: .56rem; border-radius: 10px; }
.vd-xs .vd-in { padding: 8% 8%; }
.vd-xs .vd-t { font-size: 1.9em; }
.vd-xs .vd-play { width: 44px; height: 44px; margin: -22px 0 0 -22px; top: 70%; }
.vd-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.vd-dlg { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 14px; background: #000; overflow: visible; }
.vd-dlg::backdrop { background: rgba(8,14,30,.82); }
.vd-dlg .vd-frame { border-radius: 14px; }
.vd-dlg-x { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.fp-tl-video .vd-cover { aspect-ratio: 4 / 3; }
.vd-note { font-size: .72rem; color: var(--muted); margin: .45rem 0 0; }
@media (prefers-reduced-motion: reduce) { .vd-play { transition: none; } }

/* ═══════════════════════════════════════════════════════════════
   Success story d'entreprise (cs-*) — Yura Corporation, page
   automobile : visuel + incrustation photo, chiffres, frise.
   ═══════════════════════════════════════════════════════════════ */
.cs { position: relative; overflow-x: clip; padding-block: 5.5rem 4.5rem; background: linear-gradient(180deg, #fff 0, var(--panel) 100%); border-top: 1px solid var(--line); }
.cs-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1024px) { .cs-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; } }
.cs-media { position: relative; padding-bottom: 4.5rem; }
.cs-media figure { margin: 0; }
.cs-main { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(16,32,63,.16); border: 1px solid var(--line); }
.cs-main img { display: block; width: 100%; height: auto; max-width: 100%; }
.cs-main.is-map img { padding: 1.4rem 1.4rem 3.2rem; }
.cs-main figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .1rem; padding: .6rem 50% .6rem 1.2rem; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.cs-main figcaption span { font-weight: 700; color: var(--navy); }
.cs-inset { position: absolute; right: -1rem; bottom: 0; width: min(46%, 300px); background: #fff; padding: .5rem .5rem .6rem; border-radius: var(--radius-sm); box-shadow: 0 22px 50px rgba(16,32,63,.28); transform: rotate(2deg); transition: transform .4s ease; }
.cs-inset:hover { transform: rotate(0) scale(1.03); }
.cs-inset img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cs-inset figcaption { display: flex; flex-direction: column; padding: .45rem .2rem 0; line-height: 1.3; }
.cs-inset figcaption span { font-size: .76rem; font-weight: 700; color: var(--navy); }
.cs-inset figcaption small { font-size: .66rem; color: var(--muted); }
@media (max-width: 1023px) { .cs-inset { right: .6rem; } }
@media (max-width: 559px) { .cs-media { padding-bottom: 0; } .cs-inset { position: relative; right: auto; width: 82%; margin: -.6rem .4rem 0 auto; } .cs-main.is-map img { padding: .8rem .8rem 4rem; } .cs-main figcaption { padding-right: 1.2rem; } }
.cs-thumbs { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.cs-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.cs-thumbs figcaption { font-size: .72rem; color: var(--muted); margin-top: .3rem; }

.cs-kicker { display: inline-flex; align-items: center; gap: .55rem; }
.cs-star { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.cs-brand { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.cs-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 132px; height: 70px; padding: .6rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.cs-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cs-brand p { margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cs-brand b { font-size: 1.05rem; color: var(--navy); }
.cs-brand span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cs-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.03em; margin: 1.3rem 0 0; }
.cs-text { margin: 1rem 0 0; color: var(--text); line-height: 1.75; }
.cs-tags { margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.cs-tags div { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cs-tags dt { font-size: .74rem; font-weight: 700; color: var(--muted); min-width: 3.5rem; }
.cs-tags dd { margin: 0; padding: .25rem .7rem; border-radius: 999px; background: var(--panel-2, #eef2f9); color: var(--navy); font-size: .8rem; font-weight: 600; }
.cs-tags dd.is-client { display: inline-flex; align-items: center; gap: .35rem; background: var(--panel-red); color: var(--red); }
.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 1.6rem 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cs-facts div { display: flex; flex-direction: column; padding: 1rem 1.2rem; background: #fff; position: relative; }
.cs-facts div::before { content: ''; position: absolute; left: 1.2rem; top: 0; width: 28px; height: 3px; background: var(--red); }
.cs-facts dd { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 900; color: var(--navy); line-height: 1.1; letter-spacing: -0.03em; }
.cs-facts dt { font-size: .78rem; color: var(--muted); margin-top: .25rem; line-height: 1.35; }

.cs-timeline { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); position: relative; }
.cs-timeline li { position: relative; padding-left: 1.6rem; }
.cs-timeline li::before { content: ''; position: absolute; left: 0; top: .35rem; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--red); z-index: 1; }
.cs-timeline b { display: block; font-size: 1.05rem; font-weight: 900; color: var(--navy); }
.cs-timeline span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.45; margin-top: .15rem; }
@media (min-width: 760px) {
  .cs-timeline { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.4rem; }
  .cs-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: .6rem; height: 2px; background: var(--line-2); }
  .cs-timeline li { padding: 1.6rem 0 0; }
  .cs-timeline li::before { top: .12rem; }
  .cs-timeline li:last-child::before { background: var(--red); }
}
.js .cs-timeline li { opacity: 0; transform: translateY(12px); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.js .cs-timeline.is-visible li { opacity: 1; transform: none; }
.cs-src { margin: 2rem 0 0; font-size: .74rem; color: var(--muted); }
@media (max-width: 899px) { .cs { padding-block: 3.5rem; } }
@media (prefers-reduced-motion: reduce) { .js .cs-timeline li { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════════════════════════════════════════════════
   Documents téléchargeables (dc-*) — apps.library, /resources/ et
   bandes « 자료 다운로드 » affectées page par page.
   ═══════════════════════════════════════════════════════════════ */
.dc-band { padding-block: 4.5rem; background: #fff; border-top: 1px solid var(--line); }
.dc-band-panel { background: var(--panel); border-top: 0; }
.dc-band .section-head p .arrow-link { display: inline-block; margin-top: .4rem; }
.dc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.dc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.dc-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.dc-list > li { display: flex; min-width: 0; }
.dc { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.dc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--text); }
.dc-cover { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; max-width: 100%; background: var(--panel-2); padding: 1.2rem; color: var(--red); overflow: hidden; }
.dc-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 28px rgba(16,32,63,.18); border-radius: 2px; transition: transform .5s ease; }
.dc:hover .dc-cover img { transform: scale(1.04) rotate(-1deg); }
.dc-lang { position: absolute; top: .7rem; left: .7rem; padding: .15rem .5rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.dc-lang-fr { background: #fff; color: var(--navy); border: 1px solid var(--line-2); }
.dc-lang-ko { background: var(--red); }
.dc-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.2rem 1.3rem 1.1rem; min-width: 0; }
.dc-meta { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--red); text-transform: uppercase; }
.dc-title { font-size: 1.05rem; font-weight: 800; line-height: 1.35; margin-top: .3rem; }
.dc-orig { font-size: .8rem; color: var(--navy); margin-top: .2rem; line-height: 1.4; }
.dc-sum { font-size: .84rem; color: var(--muted); line-height: 1.6; margin-top: .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1rem; }
.dc-fmt { font-size: .74rem; color: var(--muted); }
.dc-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; transition: background .25s; }
.dc:hover .dc-go { background: var(--red); }
.dc-source { margin: 2rem 0 0; font-size: .8rem; color: var(--muted); }

/* Variante ligne (colonne de texte des pages guide / institution) */
.dc-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.2rem; }
.dc-row .dc { flex-direction: row; }
.dc-row .dc-cover { flex: 0 0 150px; aspect-ratio: auto; padding: 1rem; }
.dc-row .dc-sum { -webkit-line-clamp: 2; }
@media (max-width: 559px) { .dc-row .dc { flex-direction: column; } .dc-row .dc-cover { flex-basis: auto; aspect-ratio: 4 / 3; } }
.dc-inline { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.pc-inline { margin-top: 3rem; scroll-margin-top: 6rem; } /* contacts propres à une fiche 기관 소개 (fiche FIPA) */
.pc-inline .blk-heading { margin-top: 0; }
.dc-inline .blk-heading { margin: .2rem 0 0; padding-top: 0; border-top: 0; }

/* Variante bannière (bandes « 자료 다운로드 » des pages) : une ligne compacte par document */
.dc-band-banner { padding-block: 2.8rem; }
.dc-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.2rem; margin-bottom: 1.1rem; }
.dc-band-head .eyebrow { flex-basis: 100%; margin: 0; }
.dc-band-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.dc-band-head .arrow-link { margin-left: auto; font-size: .9rem; font-weight: 700; color: var(--red); }
.dc-banner { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.dc-banner .dc { flex-direction: row; align-items: center; gap: 1.4rem; padding: 1rem 1.6rem 1rem 1rem; background: var(--navy-2); border-color: var(--navy-2); color: #fff; position: relative; overflow: hidden; }
.dc-banner .dc::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(231,0,19,.35), rgba(231,0,19,0) 70%); pointer-events: none; }
.dc-banner .dc:hover { transform: translateY(-2px); color: #fff; border-color: var(--navy); }
.dc-banner .dc-cover { flex: 0 0 96px; width: 96px; height: 116px; aspect-ratio: auto; padding: 0; background: transparent; overflow: visible; }
.dc-banner .dc-cover img { max-height: 116px; box-shadow: 0 8px 22px rgba(0,0,0,.4); transform: rotate(-4deg); }
.dc-banner .dc:hover .dc-cover img { transform: rotate(0deg) scale(1.03); }
.dc-banner .dc-lang { top: -.4rem; left: -.4rem; z-index: 1; }
.dc-banner .dc-body { flex-direction: row; align-items: center; gap: 1.4rem; padding: 0; }
.dc-text { display: flex; flex-direction: column; min-width: 0; }
.dc-banner .dc-text { flex: 1 1 auto; }
.dc-banner .dc-meta { color: #ff8a93; }
.dc-banner .dc-title { color: #fff; font-size: 1.15rem; }
.dc-banner .dc-orig { color: var(--navy-light); }
.dc-banner .dc-sum { color: rgba(255,255,255,.72); -webkit-line-clamp: 1; margin-top: .35rem; }
.dc-banner .dc-foot { flex-direction: column; align-items: flex-end; gap: .45rem; margin: 0; padding: 0; flex: 0 0 auto; position: relative; z-index: 1; }
.dc-banner .dc-fmt { color: rgba(255,255,255,.65); white-space: nowrap; }
.dc-banner .dc-go { background: var(--red); padding: .65rem 1.2rem; font-size: .88rem; }
.dc-banner .dc:hover .dc-go { background: #fff; color: var(--red); }
@media (max-width: 720px) {
    .dc-banner .dc { gap: 1rem; padding: 1rem; }
    .dc-banner .dc-body { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .dc-banner .dc-cover { flex-basis: 70px; width: 70px; height: 86px; }
    .dc-banner .dc-cover img { max-height: 86px; }
    .dc-banner .dc-foot { align-items: flex-start; }
    .dc-band-head .arrow-link { margin-left: 0; }
}

/* ── Hero secteur : carte « brochure » (option B validée, mockups/hero-teaser/) ── */
.sx-doc-teaser { position: absolute; right: 2rem; bottom: 6.5rem; z-index: 3; width: 340px; display: flex; gap: .9rem; align-items: center; padding: .75rem .9rem .75rem .75rem; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; transition: background .25s, transform .25s; }
.sx-doc-teaser:hover { background: rgba(255,255,255,.18); transform: translateY(-3px); color: #fff; }
.sx-doc-cover { width: 62px; flex: 0 0 auto; aspect-ratio: 1; background: #fff; border-radius: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.35); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--red); }
.sx-doc-cover img { width: 100%; height: 100%; object-fit: cover; }
.sx-doc-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sx-doc-k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff8a93; }
.sx-doc-title { font-size: .95rem; font-weight: 700; margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sx-doc-meta { font-size: .74rem; font-weight: 500; color: var(--navy-soft); margin-top: .25rem; letter-spacing: .02em; }
.sx-doc-go { margin-left: auto; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--red); display: inline-flex; align-items: center; justify-content: center; transition: transform .25s; }
.sx-doc-teaser:hover .sx-doc-go { transform: translateY(2px); }
@media (max-width: 900px) {
    .sx-doc-teaser { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; margin: 1.6rem 0 3rem; }
}
@media (prefers-reduced-motion: reduce) { .sx-doc-teaser, .sx-doc-go { transition: none; } }

/* ═══════════════════════════════════════════════════════════════
   Benchmark pays (bm-*) — /why-tunisia/ : tableau des médailles (B)
   et simulateur d'équipe (bms-*, A). Maquettes : mockups/benchmark/.
   ═══════════════════════════════════════════════════════════════ */
.bm-medals, .bm-sim { --bm-mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --bm-other: #c3ccda; --bm-red-soft: #fdecee;
    --gold: #c99a22; --silver: #9aa5b6; --bronze: #b46c3e; }
.bm-medals { border-bottom: 1px solid var(--line); }
.bm-sim { background: #fff; border-top: 1px solid var(--line); }
.bm-medals .section-head p .arrow-link, .bm-sim .section-head p .arrow-link { white-space: nowrap; }
.bm-src { margin: 1.4rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.65; max-width: 80rem; }
.bm-src .arrow-link { font-size: .8rem; white-space: nowrap; margin-left: .3rem; }
.bm-chip { font: inherit; border: 1px solid var(--line-2); background: #fff; color: var(--text); border-radius: 999px; padding: .32rem .85rem; font-size: .85rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.bm-chip:hover { border-color: var(--navy); }
.bm-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.bm-medals :focus-visible, .bm-sim :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Médailles */
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 12px/1 var(--bm-mono); color: #fff; font-variant-numeric: tabular-nums; vertical-align: middle; }
.medal.m1 { background: var(--gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.medal.m2 { background: var(--silver); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.medal.m3 { background: var(--bronze); box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.medal.mx { color: var(--dim); font-weight: 500; }
.bm-app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 1100px) { .bm-app { grid-template-columns: minmax(0, 1fr) 340px; } }
.bm-tally { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; margin-bottom: 1rem; }
.bm-tally p { margin: 0; font-size: .95rem; color: var(--text-2); }
.bm-tally strong { color: var(--text); }
.bm-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.bm-table { border-collapse: collapse; width: 100%; min-width: 700px; font-size: .85rem; }
.bm-table th, .bm-table td { padding: 0; text-align: center; vertical-align: middle; border-bottom: 0; text-transform: none; }
.bm-table tbody th { background: transparent; letter-spacing: 0; }
.bm-table thead th { background: var(--panel); font-weight: 700; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.bm-grp th { padding: .5rem .4rem .1rem; }
.bm-grp th + th { border-left: 1px solid var(--line); }
.bm-table th.bm-cname { text-align: left; padding-left: .75rem; }
.bm-colbtn { display: block; width: 100%; min-height: 48px; border: 0; background: none; padding: .35rem .15rem .6rem; font: 700 .75rem/1.25 var(--font); color: var(--text-2); cursor: pointer; }
.bm-colbtn:hover { color: var(--navy); background: var(--panel-2); }
.bm-colbtn[aria-pressed="true"] { color: #fff; background: var(--navy); }
.bm-table tbody tr { border-top: 1px solid var(--line); }
.bm-table tbody tr.is-home { background: var(--bm-red-soft); }
.bm-table .bm-c { text-align: left; padding: .55rem .75rem; white-space: nowrap; font-weight: 400; }
.bm-c b { font-size: .92rem; color: var(--text); }
.bm-c small { color: var(--dim); margin-left: .4rem; font-size: .72rem; }
.bm-pos { font: 700 12px var(--bm-mono); color: var(--dim); width: 38px; }
.bm-cell { cursor: pointer; }
.bm-cell.is-col { background: rgba(26,43,95,.06); }
.is-home .bm-cell.is-col { background: rgba(231,0,19,.08); }
.bm-tot { font-weight: 900; font-size: .95rem; width: 44px; font-variant-numeric: tabular-nums; }
.bm-tot.zero { color: var(--line-2); font-weight: 500; }
.bm-table th.bm-medh { width: 44px; }
.bm-stage { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.bm-stage-h { padding: 1.1rem 1.25rem 0; }
.bm-stage-h p { margin: 0; color: var(--muted); font-size: .85rem; }
.bm-stage-h .bm-no { font: 700 12px var(--bm-mono); letter-spacing: .04em; color: var(--red); }
.bm-stage-h h3 { font-size: 1.4rem; font-weight: 900; margin: .1rem 0; }
.bm-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .4rem; padding: 1.25rem 1.25rem 0; border-bottom: 3px solid var(--navy-2); }
.bm-step { display: grid; justify-items: center; text-align: center; gap: .2rem; }
.bm-step .who { font-weight: 900; font-size: .95rem; line-height: 1.2; }
.bm-step .val { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bm-step.is-home .who { color: var(--red); }
.bm-block { width: 100%; border-radius: 6px 6px 0 0; display: grid; place-items: start center; padding-top: .6rem; font: 700 26px/1 var(--bm-mono); color: #fff; transform-origin: bottom; animation: bm-rise .6s cubic-bezier(.25,.8,.25,1); }
.bm-step.p1 .bm-block { height: 118px; background: var(--gold); }
.bm-step.p2 .bm-block { height: 84px; background: var(--silver); }
.bm-step.p3 .bm-block { height: 60px; background: var(--bronze); }
@keyframes bm-rise { from { transform: scaleY(.35); } to { transform: none; } }
.bm-rest { list-style: none; margin: 0; padding: .6rem 1.25rem; }
.bm-rest li { display: grid; grid-template-columns: 22px 76px minmax(0, 1fr) 84px; gap: .6rem; align-items: center; padding: .3rem 0; font-size: .85rem; }
.bm-rest li + li { border-top: 1px dashed var(--line); }
.bm-rest .r { font: 500 12px var(--bm-mono); color: var(--dim); }
.bm-rest .t { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.bm-rest .t i { display: block; height: 100%; background: var(--bm-other); border-radius: 3px; }
.bm-rest .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.bm-rest li.is-home { font-weight: 700; }
.bm-rest li.is-home .t i { background: var(--red); }
.bm-foot { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; padding: .75rem 1.25rem 1rem; background: var(--panel); }
.bm-foot p { margin: 0; font-size: .85rem; color: var(--text-2); flex: 1 1 11rem; }
.bm-foot p b { color: var(--red); }
.bm-ctrl { display: flex; gap: .4rem; }
.bm-ctrl button { white-space: nowrap; font: 700 .85rem var(--font); border: 1px solid var(--line-2); background: #fff; color: var(--text); border-radius: 7px; height: 36px; min-width: 36px; padding: 0 .75rem; cursor: pointer; }
.bm-ctrl button:hover { border-color: var(--navy); }
.bm-ctrl .bm-play { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Simulateur */
.bms-app { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 1000px) { .bms-app { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.bms-build { background: var(--panel); padding: clamp(1.1rem, 2.4vw, 1.9rem); display: grid; gap: 1.4rem; align-content: start; }
.bms-step-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0 0 .6rem; }
.bms-step-t b { font: 700 12px/1 var(--bm-mono); color: var(--red); }
.bms-step-t span { font-weight: 700; font-size: .95rem; }
.bms-step-t small { font-size: .78rem; color: var(--muted); }
.bms-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bms-rivals { display: flex; flex-wrap: wrap; gap: .6rem .9rem; }
.bms-rg { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.bms-rg > span { font-size: .72rem; color: var(--muted); width: 100%; }
.bms-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bms-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; }
.bms-row + .bms-row { border-top: 1px solid var(--line); }
.bms-row label b { display: block; font-size: .9rem; line-height: 1.35; }
.bms-row label small { color: var(--muted); font-size: .75rem; }
.bms-stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; flex: 0 0 auto; }
.bms-stepper button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 18px; color: var(--navy); }
.bms-stepper button:hover { background: var(--panel-2); }
.bms-stepper input { width: 58px; height: 34px; border: 0; border-inline: 1px solid var(--line); border-radius: 0; text-align: center; font: 700 .95rem var(--font); color: var(--text); background: #fff; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.bms-stepper input::-webkit-inner-spin-button, .bms-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bms-hero { background: var(--navy-2); color: #fff; padding: clamp(1.25rem, 2.6vw, 2.1rem); }
.bms-hero p { margin: 0; }
.bms-k { color: #aeb9d0; font-size: .82rem; font-weight: 700; }
.bms-big { font-weight: 900; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: .25rem 0 !important; }
.bms-big small { font-size: .42em; font-weight: 700; color: #aeb9d0; letter-spacing: 0; margin-left: .35rem; }
.bms-sub { color: #d5dcea; font-size: .9rem; }
.bms-pct { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: .8rem; padding: 0 .55rem; border-radius: 4px; margin-right: .5rem; }
.bms-duo { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem; color: #c4cde0; }
.bms-duo:empty { display: none; }
.bms-duo b { color: #fff; font-variant-numeric: tabular-nums; font-size: .95rem; margin-left: .4rem; }
.bms-chart { padding: clamp(1.1rem, 2.4vw, 1.9rem); }
.bms-chart-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.1rem; align-items: baseline; margin-bottom: .8rem; }
.bms-chart-h h3 { font-size: 1rem; font-weight: 700; }
.bms-legend { display: flex; gap: .9rem; font-size: .78rem; color: var(--muted); }
.bms-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; background: var(--bm-other); }
.bms-legend i.home { background: var(--red); }
.bms-legend i.rival { background: var(--navy); }
.bms-bars { position: relative; }
.bms-bar { position: absolute; left: 0; right: 0; height: 34px; display: grid; grid-template-columns: 112px minmax(0, 1fr) 104px; gap: .6rem; align-items: center; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: top .55s cubic-bezier(.3,.7,.2,1); }
.bms-bar:disabled { cursor: default; }
.bms-bar:not(:disabled):hover .bms-name { color: var(--navy); text-decoration: underline; }
.bms-name { font-size: .88rem; font-weight: 500; line-height: 1.2; }
.bms-name small { display: block; font-size: .68rem; color: var(--dim); font-weight: 400; }
.bms-track { height: 16px; position: relative; }
.bms-fill { position: absolute; inset: 0 auto 0 0; background: var(--bm-other); border-radius: 0 4px 4px 0; transition: width .55s cubic-bezier(.3,.7,.2,1), background .3s; }
.bms-val { font-size: .84rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.bms-bar.is-home .bms-fill { background: var(--red); }
.bms-bar.is-rival .bms-fill { background: var(--navy); }
.bms-bar.is-home .bms-name, .bms-bar.is-home .bms-val, .bms-bar.is-rival .bms-name, .bms-bar.is-rival .bms-val { font-weight: 700; color: var(--text); }
@media (max-width: 560px) {
    .bms-bar { grid-template-columns: 74px minmax(0, 1fr) 84px; gap: .5rem; }
    .bms-name small { display: none; }
    .bms-val { font-size: .78rem; }
    .bm-rest li { grid-template-columns: 22px 70px minmax(0, 1fr) 76px; }
}
@media (prefers-reduced-motion: reduce) { .bm-block, .bms-bar, .bms-fill { animation: none; transition: none; } }

/* ═══════════════════════════════════════════════════════════════
   Bannière /why-tunisia/ (rx-*) — maquette B « bandeau + chiffres » :
   hero secteur plus bas + carte de compteurs qui le chevauche.
   ═══════════════════════════════════════════════════════════════ */
.rx-hero { min-height: clamp(500px, 64vh, 640px); }
.rx-hero .sx-hero-media img { object-position: 50% 62%; transform-origin: 55% 60%; }
.rx-hero .sx-hero-content { padding-bottom: 7rem; }
.rx-hero .sx-hero-text { max-width: 60rem; }
.rx-title { font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.08; max-width: 14.5em; }
.rx-title .hl { color: #ff4655; }
.rx-hero .sx-kicker { margin-bottom: 1.8rem; }
@media (min-width: 901px) { .rx-hero .sx-doc-teaser { top: 5.5rem; bottom: auto; } }
.rx-figures .sx-figure { display: flex; flex-direction: column; }
.rx-figure-link { margin-top: .6rem; font-size: .8rem; font-weight: 700; color: var(--red); }
.rx-figure-link:hover { color: var(--navy); }
.rx-figures + .bm-medals { padding-top: 4rem; }
@media (max-width: 640px) { .rx-hero { min-height: 0; } .rx-hero .sx-hero-content { padding-bottom: 4.5rem; } }

/* ══════════════════════════════════════════════════════════════
   Page 뉴스 · desks par secteur + baromètre IDE + TUNINDEX (nd-*)
   ══════════════════════════════════════════════════════════════ */
.nd-hero { position: relative; background: var(--navy-2); color: #fff; overflow: hidden; isolation: isolate; }
.nd-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; z-index: -2; }
.nd-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,32,63,.96) 30%, rgba(16,32,63,.55)); }
.nd-hero-in { padding-block: 2.6rem 2.8rem; }
.nd-hero .eyebrow { color: #ff8a93; }
.nd-hero .page-title { color: #fff; }
.nd-hero .page-title .hl { color: #ff4655; }
.nd-hero .lead { color: rgba(255,255,255,.8); max-width: 46rem; }

.nd-ticker { display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.nd-ticker > b { flex: 0 0 auto; background: var(--red); color: #fff; font-size: .72rem; letter-spacing: .14em; padding: .7rem 1rem; display: flex; align-items: center; }
.nd-ticker-view { overflow: hidden; flex: 1; min-width: 0; }
.nd-track { display: flex; gap: 2.6rem; width: max-content; padding: .7rem 0 .7rem 1.4rem; animation: nd-tick 80s linear infinite; font-size: .9rem; white-space: nowrap; }
.nd-ticker:hover .nd-track, .nd-ticker:focus-within .nd-track { animation-play-state: paused; }
.nd-track a { color: var(--text); }
.nd-track a:hover { color: var(--red); }
.nd-track time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .78rem; color: var(--red); margin-right: .5rem; }
@keyframes nd-tick { to { transform: translateX(-50%); } }

.nd-label { font-size: .74rem; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin: 0; }
.nd-cite { font-size: .74rem; color: var(--dim); margin: .7rem 0 0; }
.nd-cite a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.nd-fig { font-variant-numeric: tabular-nums; font-size: .74rem; font-weight: 700; letter-spacing: 0; color: var(--navy); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .05rem .5rem; white-space: nowrap; }
.nd-fig-on-photo { position: absolute; left: .8rem; bottom: .8rem; background: rgba(255,255,255,.95); }
.news-card .thumb { position: relative; }
.nd-src-badge { font-size: .64rem; font-weight: 700; letter-spacing: .06em; border-radius: 3px; padding: .05rem .4rem; background: var(--panel-2); color: var(--navy); }
.nd-src-badge.is-official { background: var(--navy); color: #fff; }
.news-meta .nd-src-badge + .src { margin-left: -.3rem; }

.nd-baro { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: 2rem; }
.nd-baro-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: stretch; }
@media (min-width: 1000px) { .nd-baro-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; } }
.nd-fdi { align-self: center; }
.nd-total { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.nd-total strong { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; font-weight: 900; letter-spacing: -.04em; color: var(--navy); font-variant-numeric: tabular-nums; }
.nd-total span { font-size: .9rem; color: var(--muted); }
.nd-total em { font-style: normal; font-weight: 700; font-size: .86rem; color: #1f7a45; background: #e3f3ea; border-radius: var(--radius-sm); padding: .1rem .5rem; }
.nd-stack { display: flex; gap: 2px; height: 18px; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.nd-stack i { display: block; height: 100%; }
.nd-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .7rem; font-size: .84rem; color: var(--text-2); }
.nd-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.nd-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.nd-legend b { font-variant-numeric: tabular-nums; }

.nd-market { --mk: #1f7a45; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem 1rem; display: grid; gap: .5rem; }
.nd-market.is-down { --mk: var(--red); }
.nd-market-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.nd-live { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nd-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.nd-market.is-open .nd-live i { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31,157,85,.5); animation: nd-pulse 2s infinite; }
@keyframes nd-pulse { 70% { box-shadow: 0 0 0 7px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
.nd-market-main { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.nd-market-main strong { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.05; font-weight: 900; letter-spacing: -.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.nd-chg { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.nd-chg.up { color: #1f7a45; }
.nd-chg.down { color: var(--red); }
.nd-spark { width: 100%; height: 84px; color: var(--mk); display: block; }
.nd-market[data-state="off"] .nd-spark { display: none; }
.nd-market-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); padding-top: .6rem; }
.nd-market-facts div { display: grid; gap: .1rem; }
.nd-market-facts div + div { border-left: 1px solid var(--line); padding-left: .8rem; }
.nd-market-facts dt { font-size: .72rem; color: var(--muted); }
.nd-market-facts dd { margin: 0; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.nd-market .nd-cite { margin-top: .2rem; }

.nd-nav { position: sticky; top: 76px; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nd-nav .container { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.nd-nav a { font-size: .92rem; font-weight: 700; padding: .9rem .9rem .75rem; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; color: var(--text-2); }
.nd-nav a i { font-style: normal; font-size: .72rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.nd-nav a:hover, .nd-nav a.on { border-color: var(--red); color: var(--text); }

.nd-desks { padding-bottom: 2rem; }
.nd-desk { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
@media (min-width: 760px) { .nd-desk { grid-template-columns: 250px minmax(0, 1fr); } .nd-list { grid-column: 1 / -1; } }
@media (min-width: 1180px) { .nd-desk { grid-template-columns: 270px minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.8rem; } .nd-list { grid-column: auto; } }
.nd-id { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; background: var(--navy-2); }
.nd-id img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.nd-id:hover img { transform: scale(1.04); }
.nd-id::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,32,63,.1), rgba(16,32,63,.93) 68%); }
.nd-id::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--red); }
.nd-id:hover { color: #fff; }
.nd-id-in { padding: 1.1rem; display: grid; gap: .45rem; }
.nd-en { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.72); font-weight: 700; }
.nd-id-name { font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.nd-facts { display: grid; gap: .35rem; margin-top: .2rem; }
.nd-facts > span { display: flex; justify-content: space-between; gap: .6rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: .35rem; font-size: .8rem; }
.nd-facts > span > span { color: rgba(255,255,255,.72); }
.nd-facts b { font-variant-numeric: tabular-nums; }
.nd-src { letter-spacing: .02em; text-transform: none; font-weight: 400; }
.nd-to { font-size: .84rem; font-weight: 700; margin-top: .2rem; }
.nd-lead { display: grid; gap: .7rem; align-content: start; color: var(--text); }
.nd-ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1; background: var(--panel-2); }
.nd-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.nd-lead:hover .nd-ph img { transform: scale(1.03); }
.nd-lead-title { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.38; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.nd-lead:hover { color: var(--text); }
.nd-lead:hover .nd-lead-title { color: var(--red); }
.nd-lead p { color: var(--text-2); font-size: .95rem; margin: 0; }
.nd-list { display: grid; align-content: start; }
.nd-list .nd-label { padding-bottom: .55rem; border-bottom: 2px solid var(--navy); }
.nd-item { display: grid; gap: .25rem; padding-block: .8rem; border-bottom: 1px solid var(--line); color: var(--text); }
.nd-item-title { font-size: .96rem; line-height: 1.45; font-weight: 700; }
.nd-item:hover { color: var(--text); }
.nd-item:hover .nd-item-title { color: var(--red); }
.nd-more { margin-top: .9rem; }

.nd-macro { padding-block: 2.6rem 1rem; scroll-margin-top: 130px; }
.nd-macro-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .nd-macro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .nd-macro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nd-mcard { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); position: relative; transition: box-shadow .3s, transform .3s; }
.nd-mcard::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width .35s; }
.nd-mcard:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--text); }
.nd-mcard:hover::before { width: 100%; }
.nd-mcard-foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.nd-mcard-foot .nd-fig { margin-left: auto; }
.nd-policy { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .8rem; color: var(--muted); padding-top: 1.6rem; margin: 0; }
.nd-policy b { color: var(--text); }
.nd-note { font-size: .78rem; color: var(--muted); margin: .6rem 0 0; }
.nd-detail-photo { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .nd-track { animation: none; overflow-x: auto; } .nd-market.is-open .nd-live i { animation: none; } }

/* ═══════════════════════════════════════════════════════════════
   Technopôles (tp-*) — page numérique : chiffres nationaux, grandes
   cartes des parcs TIC, cartes compactes des autres parcs.
   ═══════════════════════════════════════════════════════════════ */
.tp { padding-block: 5rem; background: var(--panel); overflow-x: clip; scroll-margin-top: 5rem; }
.tp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 2.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .tp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tp-facts div { position: relative; display: flex; flex-direction: column; padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tp-facts div::before { content: ''; position: absolute; left: 1.4rem; top: 0; width: 32px; height: 3px; background: var(--red); }
.tp-facts dd { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; color: var(--navy); line-height: 1.05; letter-spacing: -0.03em; }
.tp-facts dt { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
@media (min-width: 900px) { .tp-facts div { border-bottom: 0; } .tp-facts div:last-child { border-right: 0; } }
@media (max-width: 899px) { .tp-facts div:nth-child(2n) { border-right: 0; } .tp-facts div:nth-last-child(-n+2) { border-bottom: 0; } }

.tp-featured { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .tp-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.tp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tp-media { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: var(--navy); overflow: hidden; }
.tp-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tp-card:hover .tp-media img { transform: scale(1.04); }
.tp-media.is-logo { display: flex; align-items: center; justify-content: center; padding: 2rem; background: linear-gradient(135deg, #fff 0, var(--panel-2) 100%); }
.tp-media.is-logo img { width: auto; height: auto; max-width: 80%; max-height: 60%; object-fit: contain; }
.tp-card:hover .tp-media.is-logo img { transform: none; }
.tp-credit { position: absolute; right: .5rem; bottom: .4rem; font-size: .62rem; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tp-since { position: absolute; left: .8rem; top: .8rem; padding: .2rem .6rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tp-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1.3rem 1.4rem 1.4rem; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.tp-city { display: inline-flex; align-items: center; gap: .25rem; margin: 0; font-size: .74rem; font-weight: 700; color: var(--red); }
.tp-body h3 { font-size: 1.25rem; font-weight: 900; margin: .25rem 0 0; line-height: 1.3; }
.tp-en { margin: .1rem 0 0; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.tp-logo { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 86px; height: 44px; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.tp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tp-spec { margin: .8rem 0 0; font-size: .86rem; line-height: 1.65; color: var(--text); }
.tp-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 0; padding: .8rem 0; border-block: 1px solid var(--line); }
.tp-nums div { display: flex; flex-direction: column; min-width: 0; }
.tp-nums dd { margin: 0; font-size: 1.2rem; font-weight: 900; color: var(--navy); line-height: 1.15; }
.tp-nums dt { font-size: .7rem; color: var(--muted); line-height: 1.3; margin-top: .15rem; }
.tp-line { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.tp-line b, .tp-tenants b { display: flex; align-items: center; gap: .3rem; font-size: .74rem; color: var(--navy); margin-bottom: .2rem; }
.tp-tenants { margin-top: .8rem; }
.tp-tenants ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.tp-tenants li { padding: .15rem .55rem; border-radius: 999px; background: var(--panel); color: var(--navy); font-size: .72rem; font-weight: 600; }
.tp-link { margin-top: auto; padding-top: 1rem; font-size: .84rem; font-weight: 700; color: var(--red); }

.tp-others-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.4rem; margin: 3.2rem 0 1.2rem; }
.tp-others-head h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 900; margin: 0; }
.tp-others-head p { margin: 0; font-size: .88rem; color: var(--muted); }
.tp-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1100px) { .tp-others { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tp-mini { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.tp-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tp-mini-media { position: relative; height: 120px; background: linear-gradient(135deg, #fff 0, var(--panel-2) 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tp-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.tp-mini-media img.is-logo { width: auto; height: auto; max-width: 70%; max-height: 55%; object-fit: contain; }
.tp-mini-ico { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.tp-tag { position: absolute; left: .6rem; bottom: .6rem; padding: .15rem .55rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; }
.tp-mini-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: .9rem 1rem 1rem; }
.tp-mini-body h4 { font-size: 1rem; font-weight: 800; margin: .2rem 0 .35rem; line-height: 1.35; }
.tp-mini-body p { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.tp-mini-body .tp-city { font-size: .7rem; }
.tp-mini-body .arrow-link { margin-top: auto; padding-top: .7rem; font-size: .8rem; font-weight: 700; color: var(--red); }
.tp-src { margin: 1.8rem 0 0; font-size: .74rem; color: var(--muted); }

/* Carte + fiche des technopôles et des lieux du secteur (tpm-*) : liste par spécialité · carte · fiche.
   La liste sert de légende, de filtre et de sommaire ; les fiches sont les cartes tp-card / tp-mini (static/js/tpmap.js).
   Un pictogramme par spécialité (TP_FAMILIES, apps/sectors/models.py), le même dans la liste, sur le repère et en tête de fiche.
   Couleurs : fam-<clé> pose --c (pastilles), kind-<clé> colore le repère ; version soutenue sur fond clair. */
.fam-ict { --c: #5ec8ff; } .fam-mech { --c: #ffb547; } .fam-aero { --c: #4fe3d1; } .fam-bio { --c: #ff8fc0; } .fam-energy { --c: #7be495; } .fam-agro { --c: #d9e36a; } .fam-region { --c: #c7b8ff; } .fam-hub { --c: #ffffff; }
.tn-map .kind-ict .rm-dot, .tn-map .kind-ict .rm-halo { fill: #5ec8ff; }
.tn-map .kind-mech .rm-dot, .tn-map .kind-mech .rm-halo { fill: #ffb547; }
.tn-map .kind-aero .rm-dot, .tn-map .kind-aero .rm-halo { fill: #4fe3d1; }
.tn-map .kind-bio .rm-dot, .tn-map .kind-bio .rm-halo { fill: #ff8fc0; }
.tn-map .kind-energy .rm-dot, .tn-map .kind-energy .rm-halo { fill: #7be495; }
.tn-map .kind-agro .rm-dot, .tn-map .kind-agro .rm-halo { fill: #d9e36a; }
.tn-map .kind-region .rm-dot, .tn-map .kind-region .rm-halo { fill: #c7b8ff; }
.tn-map .kind-hub .rm-dot, .tn-map .kind-hub .rm-halo { fill: #ffffff; }
.tn-map .rm-node.has-ico .rm-halo { opacity: .22; }
.tn-map .tn-pin-ico { color: #0b1633; pointer-events: none; overflow: visible; }
.tn-map .rm-node.has-ico .rm-dot { stroke: rgba(11,22,51,.55); stroke-width: 1.6; }
.tn-map .rm-node.has-ico.is-sel .rm-dot, .tn-map .rm-node.has-ico.is-hi .rm-dot { stroke: #fff; stroke-width: 2.6; }
.tpm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.2rem; margin: 0 0 1rem; padding: 1.2rem; border-radius: calc(var(--radius) + 6px); background: #0b1633; color: #fff; }
.tpm-dot { flex: 0 0 auto; display: inline-block; width: .7rem; height: .7rem; margin-left: .5rem; border-radius: 50%; background: var(--c); }
.tpm-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c); color: #0b1633; }
.tpm-ico svg { width: 1.05rem; height: 1.05rem; }
.tpm-rail { display: flex; flex-direction: column; gap: .9rem; padding: .4rem .2rem; min-width: 0; }
.tpm-rail ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.tpm-fam { display: inline-flex; align-items: center; gap: .6rem; padding: .2rem 0; border: 0; background: none; font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9fb3e0; cursor: pointer; text-align: left; }
.tpm-fam:hover { color: #fff; }
.tpm-fam[aria-pressed="true"] { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tpm-row { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .42rem .5rem; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .9rem; font-weight: 700; line-height: 1.4; color: #dbe4f7; text-align: left; cursor: pointer; transition: background .2s, opacity .2s; }
.tpm-row:hover, .tpm-row.is-active { background: rgba(255,255,255,.08); }
.tpm-row.is-selected { background: #fff; color: var(--navy); }
.tpm-row.is-dim { opacity: .3; }
.tpm-row[data-nopin] .tpm-dot { background: none; box-shadow: inset 0 0 0 2px var(--c); }
.tpm-fam:focus-visible, .tpm-row:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tpm .tpm-map { grid-column: auto; grid-row: auto; height: min(70vh, 560px); min-height: 420px; border: 0; }
.tpm-stage { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tpm-stage > * { flex: 1 1 auto; min-width: 0; background: #13224a; border-color: rgba(255,255,255,.1); color: #fff; }
.tpm-stage > [hidden] { display: none; }
.tpm.is-ready .tpm-stage > * { animation: tpm-in .35s ease; }
.tpm-stage > *:hover { transform: none; box-shadow: none; }
.tpm-stage .tp-card:hover .tp-media img { transform: none; }
@keyframes tpm-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.tpm-stage .tp-media { aspect-ratio: 16 / 8; }
.tpm-stage .tp-media::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #13224a); pointer-events: none; }
.tpm-stage .tp-media.is-logo::after { display: none; }
.tpm-stage .tp-credit { z-index: 1; }
.tpm-stage .tp-mini-media { height: 250px; }
.tpm-stage .tp-mini-body { padding: 1.3rem 1.4rem 1.4rem; }
.tpm-stage .tp-mini-body h4 { font-size: 1.25rem; font-weight: 900; }
.tpm-stage .tp-mini-body p { font-size: .9rem; line-height: 1.7; }
.tpm-stage .tp-mini-body .tp-city { font-size: .74rem; }
.tpm-stage .tp-tag { font-size: .78rem; padding: .25rem .7rem; background: #0b1633; }
.tpm-stage h3, .tpm-stage h4, .tpm-stage .tp-nums dd, .tpm-stage strong, .tpm-stage .tp-line b, .tpm-stage .tp-tenants b { color: #fff; }
.tpm-stage .tp-spec, .tpm-stage .tp-mini-body p { color: #dbe4f7; }
.tpm-stage .tp-en, .tpm-stage .tp-nums dt, .tpm-stage .tp-line { color: #9fb3e0; }
.tpm-stage .tp-city, .tpm-stage .tp-mini-body .tp-city, .tpm-stage .arrow-link, .tpm-stage .tp-link { color: #ff8a94; }
.tpm-stage .tp-nums { border-color: rgba(255,255,255,.14); }
.tpm-stage .tp-tenants li { background: rgba(255,255,255,.1); color: #fff; }
.vc-place.is-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
/* Étiquette « pictogramme + spécialité » en tête de fiche ; fiche d'un lieu du secteur */
.tpm-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.tpm-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .25rem; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .76rem; font-weight: 700; color: #fff; }
.tpm-badge .tpm-ico { width: 1.5rem; height: 1.5rem; } .tpm-badge .tpm-ico svg { width: .95rem; height: .95rem; }
.tpm-stage .tpm-hub { flex: 0 0 auto; }
/* Fiche sans photo : le bloc du pictogramme reste discret, aux couleurs du thème */
.tpm-stage .tp-mini-media:has(.tp-mini-ico) { height: 190px; background: radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--c) 34%, #13224a), #13224a 70%); }
.tpm-stage .tp-mini-media:has(.tp-mini-ico)::before { content: ''; position: absolute; right: -2.5rem; top: -2.5rem; width: 15rem; height: 15rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 0 2.4rem color-mix(in srgb, var(--c) 10%, transparent), 0 0 0 5rem color-mix(in srgb, var(--c) 5%, transparent); }
.tpm-stage .tp-mini-ico { position: relative; width: 84px; height: 84px; background: var(--c); color: #0b1633; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.tpm-stage .tp-mini-ico svg { width: 42px; height: 42px; }
.tpm-stage .tpm-hub .tp-mini-media:has(.tp-mini-ico) { height: 150px; }
.tpm-stage .tpm-hub .tp-mini-media { height: 220px; }
.tp-mini-media .tp-credit { z-index: 1; }
.tpm-stage .tp-credit { padding: .1rem .45rem; border-radius: 4px; background: rgba(11,22,51,.55); text-shadow: none; }      /* lisible sur une photo claire */
.tpm-stage .tpm-dist { margin-top: .5rem; font-size: .8rem; color: #9fb3e0; }

/* Interrupteur « 밝은 지도 » : thème clair au choix du visiteur (mémorisé dans son navigateur) */
.tpm-bar { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; min-height: 1.7rem; margin: -.2rem 0 .6rem; font-size: .76rem; font-weight: 700; color: #9fb3e0; }
.tpm-switch { display: inline-flex; align-items: center; gap: .55rem; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.tpm-switch[hidden] { display: none; }
.tpm-switch i { position: relative; width: 3.1rem; height: 1.7rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); transition: background .25s; }
.tpm-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: calc(1.7rem - 6px); height: calc(1.7rem - 6px); border-radius: 50%; background: #fff; transition: translate .25s; }
.tpm-switch[aria-checked="true"] i { background: var(--navy); border-color: var(--navy); } .tpm-switch[aria-checked="true"] i::after { translate: 1.4rem 0; }
.tpm-switch:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 999px; }
.tpm, .tpm .tn-map, .tpm .tn-ocean, .tpm .sx-gov, .tpm-stage > * { transition: background-color .3s, fill .3s, color .3s, border-color .3s; }

.tpm[data-theme="light"] { --tl-bg: #eef4fb; --tl-sea: #cfe2f4; --tl-land: #ffffff; --tl-stroke: #b4c7de; --tl-line: #d5e0ee; background: var(--tl-bg); color: var(--navy); box-shadow: inset 0 0 0 1px var(--tl-line); }
.tpm[data-theme="light"] .fam-ict { --c: #0a7fd0; } .tpm[data-theme="light"] .fam-mech { --c: #d97f00; } .tpm[data-theme="light"] .fam-aero { --c: #0b9c8f; } .tpm[data-theme="light"] .fam-bio { --c: #d23c8a; } .tpm[data-theme="light"] .fam-energy { --c: #2a9447; } .tpm[data-theme="light"] .fam-agro { --c: #7f8f12; } .tpm[data-theme="light"] .fam-region { --c: #7457d9; } .tpm[data-theme="light"] .fam-hub { --c: #1a2b5f; }
.tpm[data-theme="light"] .tn-map .kind-ict .rm-dot, .tpm[data-theme="light"] .tn-map .kind-ict .rm-halo { fill: #0a7fd0; }
.tpm[data-theme="light"] .tn-map .kind-mech .rm-dot, .tpm[data-theme="light"] .tn-map .kind-mech .rm-halo { fill: #d97f00; }
.tpm[data-theme="light"] .tn-map .kind-aero .rm-dot, .tpm[data-theme="light"] .tn-map .kind-aero .rm-halo { fill: #0b9c8f; }
.tpm[data-theme="light"] .tn-map .kind-bio .rm-dot, .tpm[data-theme="light"] .tn-map .kind-bio .rm-halo { fill: #d23c8a; }
.tpm[data-theme="light"] .tn-map .kind-energy .rm-dot, .tpm[data-theme="light"] .tn-map .kind-energy .rm-halo { fill: #2a9447; }
.tpm[data-theme="light"] .tn-map .kind-agro .rm-dot, .tpm[data-theme="light"] .tn-map .kind-agro .rm-halo { fill: #7f8f12; }
.tpm[data-theme="light"] .tn-map .kind-region .rm-dot, .tpm[data-theme="light"] .tn-map .kind-region .rm-halo { fill: #7457d9; }
.tpm[data-theme="light"] .tn-map .kind-hub .rm-dot, .tpm[data-theme="light"] .tn-map .kind-hub .rm-halo { fill: #1a2b5f; }
.tpm[data-theme="light"] .tpm-bar { color: var(--muted); }
.tpm[data-theme="light"] .tn-map { --rm-ocean: var(--tl-sea); --rm-text: #10263f; background: var(--tl-sea); border-color: var(--tl-sea); }
.tpm[data-theme="light"] .tn-ocean { fill: var(--tl-sea); }
.tpm[data-theme="light"] .sx-gov { fill: var(--tl-land); stroke: var(--tl-stroke); }
.tpm[data-theme="light"] .rm-label { stroke: #fff; }
.tpm[data-theme="light"] .tn-leader { stroke: #5d7196; } .tpm[data-theme="light"] .tn-anchor { fill: #5d7196; stroke: #fff; }
.tpm[data-theme="light"] .tn-pin-ico, .tpm[data-theme="light"] .tpm-ico { color: #fff; }
.tpm[data-theme="light"] .rm-node.has-ico .rm-dot { stroke: #fff; stroke-width: 2; }
.tpm[data-theme="light"] .rm-node.has-ico.is-sel .rm-dot, .tpm[data-theme="light"] .rm-node.has-ico.is-hi .rm-dot { stroke: #10263f; stroke-width: 2.6; }
.tpm[data-theme="light"] .lg-zoom { background: rgba(255,255,255,.88); border-color: var(--tl-line); }
.tpm[data-theme="light"] .lg-zoom button { color: var(--navy); }
.tpm[data-theme="light"] .lg-zoom button[data-zoom="reset"], .tpm[data-theme="light"] .lg-zoom-hint { color: var(--muted); }
.tpm[data-theme="light"] .lg-zoom button:hover:not(:disabled) { background: rgba(26,43,95,.08); }
.tpm[data-theme="light"] .tpm-fam { color: var(--muted); }
.tpm[data-theme="light"] .tpm-fam:hover, .tpm[data-theme="light"] .tpm-fam[aria-pressed="true"] { color: var(--navy); }
.tpm[data-theme="light"] .tpm-fam:focus-visible, .tpm[data-theme="light"] .tpm-row:focus-visible { outline-color: var(--navy); }
.tpm[data-theme="light"] .tpm-row { color: var(--navy); }
.tpm[data-theme="light"] .tpm-row:hover, .tpm[data-theme="light"] .tpm-row.is-active { background: rgba(26,43,95,.07); }
.tpm[data-theme="light"] .tpm-row.is-selected { background: var(--navy); color: #fff; }
.tpm[data-theme="light"] .tpm-stage > * { background: #fff; border-color: var(--tl-line); color: var(--text); }
.tpm[data-theme="light"] .tpm-stage h3, .tpm[data-theme="light"] .tpm-stage h4, .tpm[data-theme="light"] .tpm-stage .tp-nums dd, .tpm[data-theme="light"] .tpm-stage strong, .tpm[data-theme="light"] .tpm-stage .tp-line b, .tpm[data-theme="light"] .tpm-stage .tp-tenants b { color: var(--navy); }
.tpm[data-theme="light"] .tpm-stage .tp-spec, .tpm[data-theme="light"] .tpm-stage .tp-mini-body p { color: var(--text); }
.tpm[data-theme="light"] .tpm-stage .tp-en, .tpm[data-theme="light"] .tpm-stage .tp-nums dt, .tpm[data-theme="light"] .tpm-stage .tp-line, .tpm[data-theme="light"] .tpm-stage .tpm-dist { color: var(--muted); }
.tpm[data-theme="light"] .tpm-stage .tp-city, .tpm[data-theme="light"] .tpm-stage .tp-mini-body .tp-city, .tpm[data-theme="light"] .tpm-stage .arrow-link, .tpm[data-theme="light"] .tpm-stage .tp-link { color: var(--red); }
.tpm[data-theme="light"] .tpm-stage .tp-nums { border-color: var(--line); }
.tpm[data-theme="light"] .tpm-stage .tp-tenants li { background: var(--panel); color: var(--navy); }
.tpm[data-theme="light"] .tpm-stage .tp-media::after { display: none; }
.tpm[data-theme="light"] .tpm-stage .tp-tag { background: var(--navy); }
.tpm[data-theme="light"] .tpm-badge { background: var(--panel); color: var(--navy); }
.tpm[data-theme="light"] .tpm-stage .tp-mini-media:has(.tp-mini-ico) { background: radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--c) 22%, #fff), var(--tl-bg) 70%); }
.tpm[data-theme="light"] .tpm-stage .tp-mini-ico { color: #fff; box-shadow: 0 10px 26px rgba(26,43,95,.18); }
@media (min-width: 1100px) {
    .tpm { grid-template-columns: 15.5rem minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 1.2rem; }
    .tpm .tpm-map { height: 740px; align-self: start; }      /* hauteur fixe : le cadrage ne dépend pas de la fiche affichée */
    /* La liste peut être plus longue que la carte (fiches secteur) : carte et fiche restent en vue pendant qu'on la parcourt */
    .tpm .tpm-map, .tpm .tpm-stage { position: sticky; top: 6rem; }
    .tpm .tpm-stage { align-self: start; min-height: 740px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
    .tpm { grid-template-columns: 15rem minmax(0, 1fr); }
    .tpm .tpm-map { height: 640px; align-self: start; }
    .tpm-stage { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
    /* Téléphone : la liste devient un ruban qui défile, spécialités et parcs à la suite */
    .tpm { padding: .8rem; }
    .tpm-rail { flex-direction: row; align-items: center; gap: .4rem; margin-inline: -.8rem; padding: .2rem .8rem .5rem; overflow-x: auto; scrollbar-width: none; }
    .tpm-rail::-webkit-scrollbar { display: none; }
    .tpm-group, .tpm-rail ul, .tpm-rail li { display: contents; }
    .tpm-fam { flex: 0 0 auto; padding-left: .5rem; white-space: nowrap; }
    .tpm-fam:first-child { padding-left: 0; }
    .tpm-row .tpm-dot { margin-left: 0; } .tpm-ico { width: 1.4rem; height: 1.4rem; } .tpm-ico svg { width: .9rem; height: .9rem; }
    .tpm-bar { margin: 0 0 .3rem; }
    .tpm-stage .tp-mini-media:has(.tp-mini-ico), .tpm-stage .tpm-hub .tp-mini-media:has(.tp-mini-ico) { height: 130px; }
    .tpm-stage .tp-mini-ico { width: 64px; height: 64px; } .tpm-stage .tp-mini-ico svg { width: 32px; height: 32px; }
    .tpm-row { flex: 0 0 auto; width: auto; padding: .4rem .7rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .8rem; white-space: nowrap; }
    .tpm-row.is-dim { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tpm.is-ready .tpm-stage > * { animation: none; } }
@media (max-width: 899px) { .tp { padding-block: 3.5rem; } }


/* ═══════════════════════════════════════════════════════════════
   Page 투자 가이드 (gd-*) — carte des zones → simulateur d'incitations
   (maquette A + B validée le 18/09/2026, mockups/guide/). Données :
   apps/pages/incentives.py ; JS : static/js/guide.js.
   ═══════════════════════════════════════════════════════════════ */
.gd-hero { --mono: "JetBrains Mono", ui-monospace, monospace; position: relative; isolation: isolate; overflow: hidden; background: var(--navy-2); color: #fff; }
.gd-hero > img { position: absolute; right: 0; top: 0; width: 58%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; animation: gdKb 18s ease-in-out infinite alternate; }
.gd-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10203f 0%, #10203f 42%, rgba(16,32,63,.72) 62%, rgba(16,32,63,.1) 100%); }
@keyframes gdKb { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1%); } }
.gd-hero-in { padding-block: 3.2rem 8.5rem; }
.gd-hero .breadcrumb, .gd-hero .breadcrumb a { color: rgba(255,255,255,.72); }
.gd-hero .eyebrow { color: #ff8b93; }
.gd-title { font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1.1; font-weight: 900; letter-spacing: -.035em; color: #fff; max-width: 16ch; margin-bottom: 1.2rem; text-wrap: balance; }
.gd-title em { font-style: normal; color: #ff5a66; }
.gd-lead { max-width: 38rem; color: rgba(255,255,255,.84); font-size: 1.05rem; line-height: 1.75; }
.gd-lead strong { color: #fff; }
.gd-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
@media (max-width: 760px) { .gd-hero > img { width: 100%; opacity: .35; } .gd-hero::after { background: linear-gradient(180deg, rgba(16,32,63,.75), #10203f); } }
.gd-heads { --mono: "JetBrains Mono", ui-monospace, monospace; position: relative; z-index: 2; margin-top: -5.4rem; }
.gd-heads-in { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gd-head { padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); }
.gd-head:first-child { border-left: 0; }
.gd-head b { display: block; font: 700 clamp(1.9rem, 3vw, 2.6rem)/1 var(--mono); letter-spacing: -.05em; color: var(--red); }
.gd-head b small { font-size: .5em; color: var(--navy); letter-spacing: -.02em; margin-left: 2px; }
.gd-head span { display: block; font-weight: 700; font-size: .9rem; margin-top: .5rem; line-height: 1.35; }
.gd-head em { font-style: normal; font-size: .75rem; color: var(--muted); }
@media (max-width: 900px) { .gd-heads-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gd-head:nth-child(3) { border-left: 0; } .gd-head:nth-child(n+3) { border-top: 1px solid var(--line); } }

.gd-step { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #ff8b93; margin: 0 0 .9rem; }
.gd-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font: 700 13px/28px "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0; text-align: center; }
.gd-step--light { color: var(--red); }
.gd-sub { color: var(--text-2); max-width: 48rem; margin-bottom: 0; }

/* ① Carte */
.gd-map-sec { margin-top: 3.5rem; background: #0b1633; color: #fff; overflow: hidden; }
.gd-map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0 2.5rem; align-items: stretch; }
.gd-map-left { padding-block: 3.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.gd-map-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); color: #fff; line-height: 1.15; text-wrap: balance; }
.gd-map-title em { font-style: normal; color: #ff5a66; }
.gd-map-lead { color: rgba(255,255,255,.78); margin: 0; max-width: 36rem; }
.gd-search { position: relative; }
.gd-search .icon { position: absolute; left: 13px; top: 13px; color: rgba(255,255,255,.6); }
.gd-search input { width: 100%; height: 48px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: .92rem; padding: 0 14px 0 44px; }
.gd-search input::placeholder { color: rgba(255,255,255,.5); }
.gd-search input:focus-visible { outline: 3px solid #ffc861; outline-offset: 2px; }
.gd-search-hint { font-size: .75rem; color: rgba(255,255,255,.55); margin: .4rem 0 0; }
.gd-card { --mono: "JetBrains Mono", ui-monospace, monospace; background: #fff; color: var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.gd-card-h { padding: 1.1rem 1.4rem .9rem; display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; border-bottom: 1px solid var(--line); }
.gd-card-h h3 { font-size: 1.5rem; margin: 0; }
.gd-card-h h3 small { font: 500 .75rem var(--mono); color: var(--muted); }
.gd-card-h > div > small { display: block; font-size: .76rem; color: var(--muted); }
.gd-pill { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.gd-pill.z2 { background: var(--red); color: #fff; } .gd-pill.z1 { background: #dfe9fb; color: #234a95; } .gd-pill.mix { background: linear-gradient(90deg, #ffd4d7, #dfe9fb); color: var(--navy-2); } .gd-pill.none { background: var(--panel); color: var(--muted); }
.gd-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gd-fig { padding: .9rem 1rem; border-left: 1px solid var(--line); }
.gd-fig:first-child { border-left: 0; }
.gd-fig b { display: block; font: 700 1.6rem/1 var(--mono); letter-spacing: -.04em; color: var(--red); }
.gd-fig span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.35; margin-top: .4rem; }
.gd-dels { padding: .7rem 1.4rem 1rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-2); }
.gd-dels b { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .3rem 0 .1rem; }
.gd-dels .l2 { color: var(--red-2); } .gd-dels .l1 { color: #234a95; }
.gd-card-f { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .75rem 1.4rem; background: var(--panel); font-size: .82rem; }
.gd-card-f a { color: var(--red); font-weight: 700; }
@media (max-width: 560px) { .gd-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gd-fig:nth-child(3) { border-left: 0; } .gd-fig:nth-child(n+3) { border-top: 1px solid var(--line); } }
.gd-mapbox { position: relative; min-height: 640px; background: radial-gradient(120% 80% at 60% 40%, #13244d 0%, #0b1633 70%); }
.gd-mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gd-mapbox .sx-gov { fill: #1b2c5a; stroke: #0b1633; stroke-width: 1.3; cursor: pointer; transition: filter .25s, opacity .25s; }
.gd-mapbox .sx-gov:hover { fill: #1b2c5a; filter: brightness(1.25); }
.gd-mapbox .sx-gov.g-all2, .gd-mapbox .sx-gov.g-all2:hover { fill: var(--red); }
.gd-mapbox .sx-gov.g-part2, .gd-mapbox .sx-gov.g-part2:hover { fill: url(#gd-pat-p2); }
.gd-mapbox .sx-gov.g-mix, .gd-mapbox .sx-gov.g-mix:hover { fill: url(#gd-pat-mix); }
.gd-mapbox .sx-gov.g-part1, .gd-mapbox .sx-gov.g-part1:hover { fill: url(#gd-pat-p1); }
.gd-mapbox .sx-gov:focus-visible { outline: none; stroke: #ffc861; stroke-width: 3; }
.gd-mapbox .sx-gov.is-sel { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 10px rgba(255,255,255,.45)); }
.gd-mapbox.has-sel .sx-gov:not(.is-sel) { opacity: .8; }
.gd-lbl { font-family: "Noto Sans KR", sans-serif; font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(11,22,51,.9); stroke-width: 4px; pointer-events: none; }
.gd-mapbox .lg-zoom { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; }
@media (max-width: 640px) { .gd-mapbox .lg-zoom { right: .6rem; bottom: .6rem; } .gd-mapbox .lg-zoom-hint { display: none; } }
.gd-legend { position: absolute; left: 1rem; bottom: 1rem; background: rgba(11,22,51,.82); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: .75rem .9rem; display: grid; gap: .35rem; font-size: .75rem; color: rgba(255,255,255,.85); }
.gd-legend .t { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.gd-legend button { all: unset; display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.gd-legend button:focus-visible { outline: 2px solid #ffc861; }
.gd-legend i { width: 18px; height: 12px; border-radius: 2px; flex: none; }
.gd-legend .k-all2 { background: var(--red); }
.gd-legend .k-part2 { background: repeating-linear-gradient(135deg, var(--red) 0 3px, #1b2c5a 3px 6px); }
.gd-legend .k-mix { background: repeating-linear-gradient(135deg, var(--red) 0 3px, #6f9be8 3px 6px); }
.gd-legend .k-part1 { background: repeating-linear-gradient(135deg, #6f9be8 0 3px, #1b2c5a 3px 6px); }
.gd-legend .k-none { background: #1b2c5a; border: 1px solid rgba(255,255,255,.2); }
.gd-map-cite { padding: 1rem 2rem 1.6rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: .4rem; }
@media (max-width: 1000px) { .gd-map-grid { grid-template-columns: 1fr; } .gd-mapbox { min-height: 560px; margin-inline: -2rem; } }
@media (max-width: 640px) { .gd-mapbox { min-height: 480px; margin-inline: -1.1rem; } .gd-legend { left: .6rem; bottom: .6rem; } .gd-map-src { display: none; } }

/* ② Simulateur */
.gd-sim-sec { --mono: "JetBrains Mono", ui-monospace, monospace; scroll-margin-top: 1rem; }
.gd-notice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.2rem; align-items: center; margin-top: 1.6rem; padding: 1.1rem 1.4rem; border: 1.5px solid var(--red); border-left-width: 6px; border-radius: var(--radius); background: #fff8f7; }
.gd-notice-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font: 900 20px/36px var(--mono); text-align: center; }
.gd-notice-t { font-weight: 900; font-size: 1rem; color: var(--red-2); margin: 0 0 .25rem; }
.gd-notice p { font-size: .88rem; color: var(--text-2); line-height: 1.65; margin-bottom: 0; }
@media (max-width: 800px) { .gd-notice { grid-template-columns: auto minmax(0, 1fr); } .gd-notice .btn { grid-column: 1 / -1; } }
.gd-sim { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 1.4rem; align-items: start; margin-top: 1.6rem; }
@media (max-width: 1050px) { .gd-sim { grid-template-columns: 1fr; } }
.gd-form { background: var(--panel); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1.5rem; }
.gd-q { display: grid; gap: .6rem; }
.gd-lbl { display: flex; align-items: baseline; gap: .6rem; font-weight: 700; font-size: .95rem; }
.gd-lbl .n { font: 700 12px/22px var(--mono); width: 22px; height: 22px; border-radius: 50%; text-align: center; background: var(--navy); color: #fff; flex: none; }
.gd-lbl .val { margin-left: auto; font: 700 1rem var(--mono); color: var(--navy); white-space: nowrap; }
.gd-lbl .val small { display: block; text-align: right; font: 500 .72rem var(--mono); color: var(--muted); }
.gd-pick { margin-left: auto; font-size: .82rem; color: var(--red); }
.gd-picked { margin: 0; font-size: .82rem; color: var(--navy); background: var(--panel-2); border-radius: 6px; padding: .45rem .75rem; }
.gd-picked b { color: var(--red); }
.gd-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.gd-chip { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .75rem .4rem .6rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; transition: border-color .2s, background .2s, color .2s; }
.gd-chip .icon { color: var(--muted); }
.gd-chip[aria-pressed="true"] { border-color: var(--red); background: #fff5f4; color: var(--red); }
.gd-chip[aria-pressed="true"] .icon { color: var(--red); }
.gd-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.gd-zone { text-align: left; padding: .75rem .85rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; gap: 2px; color: var(--text); font: inherit; }
.gd-zone b { font-size: .9rem; } .gd-zone span { font: 700 .78rem var(--mono); color: var(--red); } .gd-zone small { font-size: .72rem; color: var(--muted); line-height: 1.4; }
.gd-zone[aria-pressed="true"] { border-color: var(--red); background: #fff5f4; box-shadow: inset 0 0 0 1px var(--red); }
.gd-zone.flash { animation: gdFlash 1.2s ease; }
@keyframes gdFlash { 30% { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 6px rgba(231,0,19,.25); } }
@media (max-width: 560px) { .gd-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gd-zones { grid-template-columns: 1fr; } }
.gd-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) var(--p, 50%), #d5dbe6 var(--p, 50%)); }
.gd-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 4px 10px rgba(16,32,63,.2); cursor: pointer; }
.gd-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--red); cursor: pointer; }
.gd-range:focus-visible { outline: 3px solid #ffc861; outline-offset: 6px; }
.gd-ticks { display: flex; justify-content: space-between; font: 500 .7rem var(--mono); color: var(--dim); }
.gd-seg { display: inline-grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 3px; justify-self: start; }
.gd-seg button { border: 0; background: transparent; padding: .5rem .8rem; border-radius: 6px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.gd-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.gd-assume { font-size: .78rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.gd-assume select { font: inherit; font-weight: 700; color: var(--navy); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px; background: #fff; }
.gd-chip:focus-visible, .gd-zone:focus-visible, .gd-seg button:focus-visible, .gd-assume select:focus-visible { outline: 3px solid #ffc861; outline-offset: 2px; }

.gd-out { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.gd-out-top { background: var(--navy-2); color: #fff; padding: 1.4rem 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1.1rem; align-items: end; }
.gd-out-eyebrow { grid-column: 1 / -1; margin: 0; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #ff8b93; }
.gd-pill-nc { display: inline-block; margin-left: .5rem; letter-spacing: .02em; text-transform: none; font-size: .72rem; color: var(--navy-2); background: #ffd4d7; border-radius: 999px; padding: 1px 9px; vertical-align: 1px; }
.gd-total { font: 700 clamp(2.5rem, 4.6vw, 3.7rem)/1 var(--mono); letter-spacing: -.05em; }
.gd-total small { font-size: .38em; letter-spacing: 0; margin-left: 6px; color: rgba(255,255,255,.7); }
.gd-krw { text-align: right; font-size: .8rem; color: rgba(255,255,255,.75); }
.gd-krw b { display: block; font: 700 1.35rem var(--mono); color: #fff; }
.gd-out-top > p:last-child { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: rgba(255,255,255,.7); }
.gd-block { padding: 1.2rem 1.6rem; border-top: 1px solid var(--line); }
.gd-bh { margin: 0 0 .75rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: .6rem; align-items: baseline; font-weight: 700; flex-wrap: wrap; }
.gd-bh span { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: .75rem; }
.gd-stack { display: grid; gap: .5rem; margin-top: 2.3rem; }
.gd-track { position: relative; height: 34px; border-radius: 4px; background: var(--panel); display: flex; }
.gd-track i { display: block; height: 100%; transition: width .7s cubic-bezier(.4,0,.2,1); }
.gd-s-reg { background: var(--red); } .gd-s-pri { background: #ff6b75; } .gd-s-over { background: repeating-linear-gradient(135deg, #f3c4c7 0 5px, #fff 5px 10px); } .gd-s-inf { background: var(--navy); }
.gd-cap { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 2px dashed var(--navy-2); transition: left .7s cubic-bezier(.4,0,.2,1); }
.gd-cap span { position: absolute; top: -20px; transform: translateX(-50%); white-space: nowrap; font: 700 .68rem var(--mono); color: var(--navy-2); background: #fff; padding: 0 4px; }
.gd-cap.flip span { transform: translateX(-100%); }
.gd-lines { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .45rem; }
.gd-lines li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: .6rem; align-items: center; font-size: .88rem; }
.gd-lines li i { width: 12px; height: 12px; border-radius: 3px; }
.gd-lines li small { color: var(--muted); font-size: .74rem; }
.gd-lines li b { font: 700 .88rem var(--mono); white-space: nowrap; }
#gd-l-over-li:not(.cut) { opacity: .45; }
.gd-lines li.cut b { color: var(--dim); text-decoration: line-through; }
.gd-cal { display: grid; grid-template-columns: 92px repeat(12, minmax(0, 1fr)); gap: 3px; font-size: .75rem; align-items: center; }
.gd-cal .yr { font: 500 .66rem var(--mono); color: var(--dim); text-align: center; }
.gd-cal .rl { font-weight: 700; font-size: .76rem; }
.gd-cal .c { height: 30px; border-radius: 3px; display: grid; place-items: center; font: 700 .62rem var(--mono); }
.gd-cal .c0 { background: var(--red); color: #fff; } .gd-cal .c10 { background: #ffd4d7; color: var(--red-2); } .gd-cal .c20 { background: #e3e8f0; color: var(--muted); }
.gd-cal .cx { background: var(--navy); color: #fff; font-family: inherit; } .gd-cal .cn { background: #e3e8f0; color: var(--muted); }
.gd-cal-note { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--text-2); margin-top: .75rem; }
.gd-cal-note b { font-family: var(--mono); color: var(--navy); }
.gd-pin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.gd-gauge small { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.gd-gauge small b { font-family: var(--mono); color: var(--text); }
.gd-gauge div { height: 8px; border-radius: 8px; background: var(--panel-2); overflow: hidden; margin-top: .3rem; }
.gd-gauge div i { display: block; height: 100%; background: var(--navy); transition: width .6s; }
.gd-gauge.full div i { background: var(--red); }
.gd-pin-msg { grid-column: 1 / -1; margin: 0; font-size: .84rem; padding: .6rem .9rem; border-radius: 6px; background: var(--panel); }
.gd-pin-msg.on { background: var(--navy); color: #fff; }
.gd-pin-msg.on b { color: #ff8b93; }
.gd-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.gd-x { display: flex; gap: .6rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 6px; font-size: .8rem; }
.gd-x .ib-ico, .gd-regime .ib-ico, .gd-agency .ib-ico { width: 34px; height: 34px; background: var(--panel-red); box-shadow: none; align-self: center; }
.gd-x b { display: block; font: 700 .84rem var(--mono); color: var(--red); }
.gd-note { font-size: .76rem; color: var(--muted); margin: .6rem 0 0; }
.gd-regime, .gd-agency { display: flex; gap: .9rem; align-items: flex-start; }
.gd-regime ul { margin: .35rem 0 0; padding-left: 1.1rem; font-size: .84rem; color: var(--text-2); }
.gd-agency p { margin: 0; font-size: .88rem; align-self: center; }
.gd-legal { padding: 1.1rem 1.6rem 1.4rem; background: var(--panel); display: grid; gap: .75rem; border-top: 1px solid var(--line); }
.gd-legal p { font-size: .8rem; color: var(--text-2); line-height: 1.65; margin: 0; }
.gd-legal strong { color: var(--red-2); }
.gd-legal .btn { justify-self: start; }
@media (max-width: 560px) { .gd-cal { grid-template-columns: 64px repeat(12, minmax(0, 1fr)); } .gd-cal .c { font-size: 0; } .gd-pin { grid-template-columns: 1fr; } .gd-block, .gd-out-top, .gd-legal { padding-inline: 1rem; } .gd-form { padding: 1.1rem; } }

/* Formules comparées */
.gd-plans-sec { --mono: "JetBrains Mono", ui-monospace, monospace; background: var(--panel); }
.gd-planwrap { overflow-x: auto; margin-top: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gd-plans { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .88rem; table-layout: fixed; }
.gd-plans th, .gd-plans td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: none; text-transform: none; letter-spacing: 0; color: inherit; font-size: inherit; }
.gd-plans thead td { width: 200px; }
.gd-plans tbody tr:last-child > * { border-bottom: 0; }
.gd-plans .gd-ph { padding-block: 1.2rem 1.1rem; }
.gd-plans .gd-ph b { display: block; font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; }
.gd-plans .gd-ph small, .gd-plans td small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.4; margin-top: .2rem; font-weight: 400; }
.gd-tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--red); color: #fff; margin-bottom: .45rem; }
.gd-plans tbody th { background: var(--panel); font-weight: 700; font-size: .84rem; }
.gd-plans tbody th span { display: flex; align-items: center; gap: .55rem; }
.gd-plans tbody th .icon { color: var(--red); flex: none; }
.gd-plans .hl { background: #fff5f4; }
.gd-plans th.hl { box-shadow: inset 0 3px 0 var(--red); }
.gd-plans .pin { background: var(--navy); color: #fff; border-bottom-color: rgba(255,255,255,.12); }
.gd-plans .pin small { color: rgba(255,255,255,.72); }
.gd-plans .pin .gd-tag { background: #fff; color: var(--navy); }
.gd-v { display: block; font: 700 1.2rem/1.1 var(--mono); letter-spacing: -.03em; color: var(--red); }
.gd-v.muted { color: var(--dim); }
.gd-v.neutral { color: var(--navy); }
.gd-plans .pin .gd-v { color: #ff8b93; }
.gd-yrs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; margin-top: .4rem; }
.gd-yrs i { height: 8px; border-radius: 1px; background: #e3e8f0; }
.gd-yrs i.on { background: var(--red); }
.gd-plans .pin .gd-yrs i { background: rgba(255,255,255,.15); } .gd-plans .pin .gd-yrs i.on { background: #ff8b93; }
.gd-src { margin: 1rem 0 0; font-size: .74rem; color: var(--muted); line-height: 1.7; }
.gd-src a { color: var(--navy); margin-left: .6rem; white-space: nowrap; }

/* Chapitres regroupés */
.gd-ch-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.gd-ch-group h3 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.gd-ch-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gd-ch-list { display: grid; gap: .6rem; }
.gd-ch { --wm: 96px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85rem; align-items: center; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .3s, box-shadow .3s; }
.gd-ch .ib-ico { align-self: center; }
.gd-ch strong { display: block; font-size: .95rem; line-height: 1.3; }
.gd-ch small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.45; margin-top: 2px; }
.gd-ch-fig { font: 700 .8rem "JetBrains Mono", ui-monospace, monospace; color: var(--red); white-space: nowrap; }
@media (max-width: 1000px) { .gd-ch-groups { grid-template-columns: 1fr; } }

/* Autorités compétentes */
.gd-auth-sec { padding-top: 1rem; }
.gd-auth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.6rem; }
.gd-a { --wm: 110px; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .3s, box-shadow .3s; }
.gd-a strong { font-size: 1.05rem; line-height: 1.3; margin-top: .3rem; }
.gd-a small { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.gd-a .go { margin-top: auto; padding-top: .6rem; color: var(--red); font-weight: 700; font-size: .88rem; }
.gd-a--embassy { background: var(--navy); border-color: var(--navy); color: #fff; }
.gd-a--embassy small { color: rgba(255,255,255,.75); }
.gd-a--embassy .go { color: #ff8b93; }
.gd-a--embassy .ib-wm { color: #fff; }
.gd-a--embassy:hover { color: #fff; }
@media (max-width: 900px) { .gd-auth { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gd-hero > img { animation: none; } .gd-track i, .gd-cap, .gd-gauge div i { transition: none; } .gd-zone.flash { animation: none; } }

/* Menu déroulant du guide : dix chapitres sur deux colonnes (ajouté le 18/09/2026) */
.nav-menu-long { min-width: 380px; }
.nav-menu-wide { min-width: 560px; left: -12rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.6rem; padding: .4rem 1rem; }
.nav-menu-wide .nav-menu-head { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: .2rem; font-weight: 700; }
.nav-menu-wide .nav-menu-head + .nav-menu-link, .nav-menu-wide .nav-menu-head + .nav-menu-link + .nav-menu-link { border-top: 0; }
@media (max-width: 1200px) { .nav-menu-wide { min-width: 420px; left: -8rem; } }
/* Équivalent en won affiché à côté des montants en dinars (apps/core/money.py) */
.won { color: var(--muted); font-size: .86em; white-space: nowrap; font-weight: 500; }
.figure-value .won, .gd-fig .won, .tp-nums .won { display: block; font-size: .5em; margin-top: .2rem; color: var(--dim); letter-spacing: 0; }
.gd-card .gd-fig .won { font-size: .62rem; }
.gd-lines b .won { display: block; text-align: right; font-size: .72rem; font-weight: 500; margin-top: 1px; }
.gd-cal-note .won { font-size: .75rem; }
strong .won, b .won { font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   Sources — option B (notes repliables) + A (bulle « 근거 ») validées
   le 18/09/2026. Maquettes : mockups/sources/. Le corps de page ne
   porte qu'une ligne fine ; les points sensibles ouvrent une bulle.
   ═══════════════════════════════════════════════════════════════ */
.srcn { border-top: 1px solid var(--line); margin-top: 1.6rem; }
.srcn summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .6rem 0; font-size: .74rem; font-weight: 700; color: var(--muted); }
.srcn summary::-webkit-details-marker { display: none; }
.srcn summary .icon { color: var(--red); flex: none; }
.srcn summary::after { content: "▾"; color: var(--dim); transition: transform .25s ease; }
.srcn[open] summary::after { transform: rotate(180deg); }
.srcn summary:hover { color: var(--text); }
.srcn ol { margin: 0 0 1rem; padding-left: 1.4rem; display: grid; gap: .3rem; font-size: .76rem; line-height: 1.65; color: var(--muted); }
.srcn ol a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.srcn ol a:hover { color: var(--red); }
.srcn-dark { border-top-color: rgba(255,255,255,.14); }
.srcn-dark summary { color: rgba(255,255,255,.6); }
.srcn-dark summary:hover { color: #fff; }
.srcn-dark ol { color: rgba(255,255,255,.55); }
.srcn-dark ol a { color: #ff8b93; }
.srcn-dark ol a:hover { color: #fff; }
@media print { .srcn { display: block; } .srcn ol { display: grid !important; } .srcn summary::after { content: ""; } }

.srccite-wrap { position: relative; display: inline-block; }
.srccite { font: 700 .66rem/1 var(--mono, "JetBrains Mono", ui-monospace, monospace); vertical-align: super; color: var(--red); background: none; border: 0; padding: 0 1px; cursor: pointer; }
.srccite:hover, .srccite[aria-expanded="true"] { text-decoration: underline; }
.srccite-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; vertical-align: baseline; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem .2rem .5rem; text-decoration: none; }
.srccite-chip .icon { color: var(--red); }
.srccite-chip:hover, .srccite-chip[aria-expanded="true"] { border-color: var(--red); color: var(--red-2); text-decoration: none; }
.srccite-chip.on-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.8); }
.srccite-chip.on-dark .icon { color: #ff8b93; }
.srccite-chip.on-dark:hover, .srccite-chip.on-dark[aria-expanded="true"] { border-color: #ff8b93; color: #fff; }
/* Un sélecteur de section (.gc-fact span…) l'emportait sur l'attribut « hidden » du navigateur :
   la bulle restait ouverte et le ✕ ne la fermait plus (signalé le 2026-09-20 sur /guide/competitive-costs/). */
.srcpop[hidden] { display: none; }
.srcpop { position: absolute; z-index: 40; top: calc(100% + .6rem); left: -1.2rem; width: min(26rem, 78vw); text-align: left; background: #fff; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 22px 60px rgba(16,32,63,.24); padding: .9rem 1.1rem .8rem; font-size: .78rem; font-weight: 400; line-height: 1.65; letter-spacing: 0; text-transform: none; white-space: normal; }
.srcpop::before { content: ""; position: absolute; top: -7px; left: 1.4rem; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.srcpop-title { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: .3rem; }
.srcpop strong { color: var(--text); }
.srcpop a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.srcpop .asof { display: block; margin-top: .5rem; color: var(--dim); font-size: .7rem; }
.srcpop-x { position: absolute; top: .3rem; right: .4rem; border: 0; background: none; color: var(--dim); cursor: pointer; font-size: .95rem; line-height: 1; padding: .2rem .3rem; }
.srcpop-right { left: auto; right: -1.2rem; }
.srcpop-right::before { left: auto; right: 1.4rem; }
.srcpop.is-fixed { position: fixed; top: auto; left: auto; right: auto; width: min(26rem, calc(100vw - 2rem)); max-height: min(62vh, 30rem); overflow: auto; }
.srcpop.is-fixed::before { display: none; }
@media (max-width: 640px) {
    /* Au-dessus de la barre d'onglets (56 px) : sinon la dernière ligne de la source passe dessous. */
    .srcpop, .srcpop-right { position: fixed; inset: auto 1rem calc(72px + env(safe-area-inset-bottom));
                             width: auto; max-height: 55vh; overflow: auto; }
    .srcpop::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Chapitres du guide (gc-*) — même langage que /guide/ : héros photo
   sombre, bandeau de chiffres, tableaux et encadrés en chiffres mono.
   Données : apps/pages/chapters.py · gabarit : templates/pages/detail.html
   ═══════════════════════════════════════════════════════════════ */
.gc-hero { --mono: "JetBrains Mono", ui-monospace, monospace; position: relative; isolation: isolate; overflow: hidden; background: var(--navy-2); color: #fff; }
.gc-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; z-index: -2; }
.gc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10203f 0%, rgba(16,32,63,.95) 42%, rgba(16,32,63,.62) 68%, rgba(16,32,63,.25) 100%); }
.gc-hero-in { padding-block: 2.8rem 6.5rem; max-width: 100%; }
.gc-hero .breadcrumb, .gc-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.gc-hero .breadcrumb a:hover { color: #fff; }
.gc-hero .eyebrow { color: #ff8b93; }
.gc-title { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; color: #fff; margin-bottom: .9rem; max-width: 20ch; text-wrap: balance; }
.gc-kicker { font-size: 1.05rem; font-weight: 700; color: #ff8b93; max-width: 40rem; margin-bottom: .8rem; }
.gc-lead { color: rgba(255,255,255,.82); max-width: 44rem; line-height: 1.8; font-weight: 300; }
.gc-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
@media (max-width: 760px) { .gc-hero > img { opacity: .3; } .gc-hero::after { background: linear-gradient(180deg, rgba(16,32,63,.8), #10203f); } .gc-hero-in { padding-block: 2rem 5.5rem; } }
.gc-facts { --mono: "JetBrains Mono", ui-monospace, monospace; position: relative; z-index: 2; margin-top: -4.4rem; }
.gc-facts-in { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gc-fact { padding: 1.2rem 1.4rem; border-left: 1px solid var(--line); }
.gc-fact:first-child { border-left: 0; }
.gc-fact b { display: block; font: 700 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--mono); letter-spacing: -.05em; color: var(--red); }
.gc-fact b small { font-size: .5em; color: var(--navy); margin-left: 2px; letter-spacing: -.02em; }
.gc-fact span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: .45rem; }
@media (max-width: 760px) { .gc-facts-in { grid-template-columns: 1fr; } .gc-fact { border-left: 0; border-top: 1px solid var(--line); } .gc-fact:first-child { border-top: 0; } }
.gc-layout { padding-top: 3rem; }

/* Corps du chapitre : chiffres en mono, encadrés et tableaux comme sur /guide/ */
.gc-body { --mono: "JetBrains Mono", ui-monospace, monospace; }
.gc-body .blk-heading { font-size: clamp(1.5rem, 2.4vw, 2rem); padding-top: .4rem; }
.gc-body .blk-heading::before { content: ""; display: block; width: 46px; height: 3px; background: var(--red); margin-bottom: .9rem; }
.gc-body .figure-value { font-family: var(--mono); letter-spacing: -.04em; color: var(--red); }
.gc-body .blk-table table { font-variant-numeric: tabular-nums; }
.gc-body .blk-table th { background: var(--panel); color: var(--navy); }
.gc-body .blk-table td:first-child { font-weight: 700; color: var(--text); }
.gc-body .blk-table tbody tr:hover { background: #fff8f7; }
.gc-body .blk-note { border-left: 4px solid var(--red); border-radius: var(--radius); background: #fff8f7; }
.gc-body .blk-note strong { color: var(--red-2); }
.gc-body .blk-note.note-info, .gc-body .blk-note.tone-info { border-left-color: var(--navy); background: var(--panel-2); }
.gc-body .blk-note.note-info strong, .gc-body .blk-note.tone-info strong { color: var(--navy); }
.gc-body .blk-steps .step-num, .gc-body .blk-steps .step-index { font-family: var(--mono); color: var(--red); }
.gc-body .bullets li::marker { color: var(--red); }

/* Chapitre précédent / suivant */
.gc-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 2.4rem; }
.gc-nav-link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.gc-nav-link small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.gc-nav-link strong { font-size: 1rem; color: var(--text); line-height: 1.3; }
.gc-nav-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.gc-next { text-align: right; align-items: flex-end; }
@media (max-width: 640px) { .gc-nav { grid-template-columns: 1fr; } .gc-next { text-align: left; align-items: flex-start; } }
/* Les tableaux défilent dans leur propre conteneur : la page ne scrolle jamais latéralement */
.blk-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Sommaire latéral des chapitres : colle au défilement et suit la lecture (scroll-spy, site.js) */
@media (min-width: 1024px) {
    .gc-aside { top: 5.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; scrollbar-width: thin; padding-right: .2rem; }
    .gc-aside::-webkit-scrollbar { width: 6px; }
    .gc-aside::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
}
.gc-toc-box .toc { position: relative; padding-left: .8rem; }
.gc-toc-box .toc::before { content: ""; position: absolute; left: 0; top: .2rem; bottom: .2rem; width: 2px; background: var(--line-2); border-radius: 2px; }
.gc-toc-box .toc a { position: relative; padding: .35rem 0; line-height: 1.4; transition: color .2s ease; }
.gc-toc-box .toc a::before { content: ""; position: absolute; left: -.8rem; top: .35rem; bottom: .35rem; width: 2px; background: transparent; border-radius: 2px; transition: background .25s ease; }
.gc-toc-box .toc a.is-current { color: var(--red); font-weight: 700; }
.gc-toc-box .toc a.is-current::before { background: var(--red); }

/* Bandeau « 관계 기관 » (gi-*) : logos officiels des institutions citées dans le chapitre */
.gi { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.gi-h { display: flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.gi-h .icon { color: var(--red); }
.gi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.gi-card { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.gi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.gi-logo { display: grid; place-items: center; height: 52px; }
.gi-logo img { max-height: 52px; max-width: 76px; width: auto; object-fit: contain; }
.gi-logo b { font: 700 .95rem/1 var(--mono, "JetBrains Mono", ui-monospace, monospace); letter-spacing: .04em; color: var(--navy); background: var(--panel-2); border-radius: var(--radius-sm); padding: .55rem .6rem; }
.gi-body strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--text); }
.gi-body small { display: block; font-size: .72rem; color: var(--dim); margin-bottom: .25rem; }
.gi-role { display: block; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.gi-go { color: var(--red); font-weight: 700; align-self: start; }
@media (max-width: 720px) { .gi-grid { grid-template-columns: 1fr; } }

/* ── FAQ (투자 가이드) — questions fréquentes, balisées FAQPage ───── */
.gd-faq { display: grid; gap: .7rem; margin-top: 2rem; }
.gd-faq-item { background: #fff; border: 1px solid var(--trait, #e6e6e6); border-radius: 16px; overflow: hidden; }
.gd-faq-item > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; }
.gd-faq-item > summary::-webkit-details-marker { display: none; }
.gd-faq-item > summary h3 { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.45; }
.gd-faq-item > summary i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu, #1a2b5f); position: relative; transition: transform .25s ease; }
.gd-faq-item > summary i::before, .gd-faq-item > summary i::after { content: ''; position: absolute; inset: 50% 25%; height: 2px; margin-top: -1px; background: #fff; }
.gd-faq-item > summary i::after { transform: rotate(90deg); transition: opacity .2s ease; }
.gd-faq-item[open] > summary i::after { opacity: 0; }
.gd-faq-body { padding: 0 1.4rem 1.3rem; }
.gd-faq-body p { margin: 0 0 .8rem; color: var(--gris-texte, #414141); line-height: 1.75; }


/* ── Carte de change dinar → won (partials/won_rate.html) ──────────────────────
   Placée dans le héros, à droite du titre. Elle doit rester SECONDAIRE au titre :
   pas de sur-titre en capitales, pas de grand nombre, et le verre dépoli sur les
   héros photo — même idiome que .sx-doc-teaser, déjà éprouvé sur ces fonds.
   Sous 900 px elle se replie en une seule ligne pour ne pas repousser le contenu. */
.wr { border-radius: var(--radius); font-size: .82rem; line-height: 1.5; }
.wr-card { width: 100%; max-width: 21rem; padding: .85rem 1rem .95rem; }
.wr-head { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; }
.wr-ico { display: inline-flex; flex: none; }
.wr-ico svg { display: block; }
.wr-k { font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.wr-rate { margin: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.wr-rate b { font-weight: 800; }
.wr-meta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; margin: .15rem 0 0; font-size: .72rem; }
.wr-src a { text-decoration: underline; text-underline-offset: 2px; }
.wr-form { margin-top: .7rem; padding-top: .65rem; }
.wr-lbl { display: block; font-size: .74rem; font-weight: 700; margin-bottom: .3rem; }
.wr-input { display: inline-flex; align-items: center; gap: .4rem; }
.wr-input input { width: 6.6rem; padding: .28rem .5rem; border-radius: var(--radius-sm); font: inherit; font-size: .82rem; font-variant-numeric: tabular-nums; }
.wr-unit { font-size: .72rem; }
.wr-help { margin: .45rem 0 0; font-size: .7rem; line-height: 1.45; }
.wr-state { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: .4rem 0 0; }
.wr-state:empty { display: none; }
.wr-mine { font-size: .72rem; font-weight: 700; }
.wr-reset { border: 0; background: none; padding: 0; font: inherit; font-size: .72rem; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Sur fond clair : panneau discret, filet marine à gauche. */
.wr-light { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--navy-soft); color: var(--muted); }
.wr-light .wr-ico, .wr-light .wr-rate { color: var(--navy); }
.wr-light .wr-k { color: var(--text-2); }
.wr-light .wr-meta, .wr-light .wr-help, .wr-light .wr-unit { color: var(--dim); }
.wr-light .wr-src a { color: var(--muted); }
.wr-light .wr-src a:hover, .wr-light .wr-src a:focus-visible { color: var(--red); }
.wr-light .wr-form { border-top: 1px dashed var(--line-2); }
.wr-light .wr-lbl { color: var(--text-2); }
.wr-light .wr-input input { border: 1px solid var(--line-2); background: var(--bg); color: var(--text); }
.wr-light .wr-mine, .wr-light .wr-reset { color: var(--red-2); }

/* Sur héros photo : verre dépoli, lisible sur l'image sans rivaliser avec le titre. */
.wr-dark { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: rgba(255, 255, 255, .82); }
.wr-dark .wr-ico, .wr-dark .wr-rate { color: #fff; }
.wr-dark .wr-k { color: rgba(255, 255, 255, .72); }
.wr-dark .wr-meta, .wr-dark .wr-help, .wr-dark .wr-unit { color: rgba(255, 255, 255, .62); }
.wr-dark .wr-src a { color: rgba(255, 255, 255, .82); }
.wr-dark .wr-src a:hover, .wr-dark .wr-src a:focus-visible { color: #fff; }
.wr-dark .wr-form { border-top: 1px solid rgba(255, 255, 255, .2); }
.wr-dark .wr-lbl { color: rgba(255, 255, 255, .88); }
.wr-dark .wr-input input { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; }
.wr-dark .wr-input input::placeholder { color: rgba(255, 255, 255, .5); }
.wr-dark .wr-mine, .wr-dark .wr-reset { color: #ffd2cf; }
.wr-input input:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.wr-input input[aria-invalid="true"] { border-color: var(--red); }

/* Variante « row » : héros déjà occupé (pages secteur), la carte tient sur une ligne. */
.wr-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding: .6rem .9rem; }
.wr-row .wr-head { margin: 0; }
.wr-row .wr-rate { font-size: .9rem; }
.wr-row .wr-form { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; margin: 0; padding: 0; border: 0; margin-left: auto; }
.wr-row .wr-field { display: flex; align-items: center; gap: .45rem; }
.wr-row .wr-lbl { margin: 0; }
.wr-row .wr-help { flex-basis: 100%; margin: 0; }
.wr-row .wr-state { margin: 0; }

/* Mobile : la carte se replie en ligne pour ne pas repousser le contenu. Le texte
   d'aide passe hors écran — le libellé « 다른 환율로 계산 » suffit à l'œil, et
   aria-describedby continue de le lire pour les lecteurs d'écran. */
@media (max-width: 900px) {
    .wr-card { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding: .6rem .8rem; }
    .wr-card .wr-head, .wr-card .wr-meta { margin: 0; }
    .wr-card .wr-rate { font-size: .92rem; }
    .wr-card .wr-form { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin-top: .4rem; padding-top: .4rem; }
    .wr-card .wr-lbl { margin: 0; }
    .wr-card .wr-state { margin: 0; }
    .wr .wr-help, .wr-row .wr-help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Héros en deux colonnes quand la page porte des montants : la carte de change
   prend la colonne de droite, là où le dégradé du héros photo est le plus clair.
   Sans montant la grille reste monocolonne — pas de colonne vide. */
.gc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.gc-hero-grid.has-wr { grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.6rem; }
.gc-hero-side, .page-hero-side { min-width: 0; display: grid; gap: 1rem; align-content: start; }
@media (max-width: 900px) {
    .gc-hero-grid.has-wr { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
}
/* Variante « row » sous le bandeau de chiffres des pages secteur. */
.sx-figures .wr-row { margin-top: .9rem; }

/* Chiffres clés : les colonnes s'adaptent au nombre d'éléments (plus de cellule grise vide) */
@media (min-width: 900px) {
    .figure-grid:not([class*="cols-"]) { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

/* Sommaire des chapitres : seul le sommaire flotte ; le reste de la colonne suit le fil de la page,
   pour qu'aucune carte ne soit coupée ni illisible (retour utilisateur du 18/09/2026). */
@media (min-width: 1024px) {
    .gc-aside { position: static; max-height: none; overflow: visible; }
    .gc-aside .gc-toc-box { position: sticky; top: 5.5rem; z-index: 3; max-height: calc(100vh - 8rem); overflow-y: auto; box-shadow: 0 10px 30px rgba(16,32,63,.06); background: #fff; }
    .gc-aside .gc-toc-box::-webkit-scrollbar { width: 6px; }
    .gc-aside .gc-toc-box::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
}

/* Calculateur : barre d'actions (partage, impression, demande de conseil) */
.gd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem 1.6rem 0; }
.gd-tools .btn { min-height: 40px; }
.gd-tools-msg { font-size: .78rem; color: var(--navy); }
@media (max-width: 560px) { .gd-tools { padding-inline: 1rem; } .gd-tools .btn { flex: 1 1 100%; } }

/* Impression : ne garder que le résultat du calculateur, déplié et lisible en noir sur blanc */
@media print {
    .topbar, .site-header, .site-footer, .gd-hero, .gd-heads, .gd-map-sec, .gd-plans-sec, .gd-ch-sec,
    .gd-auth-sec, .dc-band, .cta-band, .gd-tools, .gd-form, .gd-notice .btn, .skip-link { display: none !important; }
    .gd-sim { display: block; }
    .gd-out { box-shadow: none; border: 1px solid #999; }
    .gd-out-top { background: #fff !important; color: #000 !important; }
    .gd-out-top .gd-total, .gd-out-top .gd-krw b { color: #000 !important; }
    .gd-out-top .gd-out-eyebrow { color: #000 !important; }
    .gd-block, .gd-legal { break-inside: avoid; }
    .gd-legal { background: #fff; border-top: 1px solid #999; }
    .srcpop, .gd-cap span { display: none !important; }
    a[href]::after { content: ""; }
}

/* ── Correctif : plancher de 16 px sur les champs (zoom iOS) ─────────────────
   iOS Safari agrandit la page à la mise au point de tout champ dont la police est
   sous 16 px, et ne revient pas à l'échelle : le formulaire de contact, le simulateur
   du guide et celui du benchmark étaient tous concernés. Le !important est volontaire,
   il doit passer au-dessus des règles de composant (.ct-field input, .gd-* …). */
@media (max-width: 1179.98px) {
    input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
    select, textarea { font-size: 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Navigation mobile — maquette D validée le 2026-09-18
   (mockups/mobile-nav/index.html). Codes des applications coréennes :
   onglets libellés en bas, icône pleine à l'état actif, page « 전체 » plein
   écran, barre d'action collante. Active sous 1024 px uniquement.
   ═══════════════════════════════════════════════════════════════════════════ */
.mn-tabs, .mn-all, .mn-cta { display: none; }

@media (max-width: 1179.98px) {
    /* La barre supérieure (plateforme, langues) migre dans « 전체 » : 34 px rendus au contenu. */
    .topbar { display: none; }
    /* Seul le dernier bloc de la page a besoin de dégager la barre d'onglets. */
    .site-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }

    /* ── Barre d'onglets ─────────────────────────────────────────────────── */
    /* Style « socle teinté, filet rouge » (variante B, mockups/bottom-bar/, retenue le
       19/09/2026) : la barre blanche se fondait dans le contenu sur les pages à fond clair
       — accueil, fiches du guide, articles. Le socle la détache sans assombrir l'écran, et
       le filet rouge reprend le repère d'onglet actif déjà employé en haut du site. */
    .mn-tabs { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
               grid-template-columns: repeat(5, 1fr); background: var(--panel);
               box-shadow: inset 0 1px 0 var(--line-2), 0 -10px 24px rgba(16, 32, 63, .06);
               padding-bottom: env(safe-area-inset-bottom); }
    .mn-tabs .mn-tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px;
                       min-height: 56px; padding: 10px 2px 6px; border: 0; background: none; cursor: pointer;
                       font: 500 10.5px/1.2 var(--font); letter-spacing: -.02em; color: var(--muted);
                       -webkit-tap-highlight-color: transparent; }
    .mn-tabs .mn-tab .icon { width: 24px; height: 24px; }
    /* Phosphor duotone : l'aplat à opacity .2 porte le « plein ». Au repos on l'efface
       (icône en contour), à l'état actif on l'affiche entièrement — signal d'état des
       applications coréennes, jamais un trait sous l'onglet. */
    .mn-tabs .mn-tab .icon path[opacity] { opacity: 0; transition: opacity .15s ease; }
    /* Filet rouge de l'onglet actif : troisième signal avec le fond blanc et l'icône pleine. */
    .mn-tabs .mn-tab::before { content: ""; position: absolute; top: 0; left: 50%; width: 46px; height: 3px;
                               border-radius: 0 0 3px 3px; background: var(--red);
                               transform: translateX(-50%) scaleX(0); transition: transform .2s ease; }
    .mn-tabs .mn-tab.is-on { color: var(--navy); font-weight: 700; background: #fff; }
    .mn-tabs .mn-tab.is-on::before { transform: translateX(-50%) scaleX(1); }
    .mn-tabs .mn-tab.is-on .icon path[opacity] { opacity: 1; }
    .mn-tabs .mn-tab:active { color: var(--navy); }

    /* ── Barre d'action de la page ───────────────────────────────────────── */
    .mn-cta { display: flex; position: fixed; left: 0; right: 0; z-index: 88; gap: 8px;
              bottom: calc(74px + env(safe-area-inset-bottom)); padding: 10px 14px 12px;
              background: linear-gradient(180deg, rgba(255,255,255,0) 0, #fff 22px);
              transform: translateY(130%); transition: transform .26s cubic-bezier(.3,.8,.3,1); }
    .mn-cta[hidden] { display: flex; }            /* masquée par la transformation, pas par display */
    .mn-cta.is-on { transform: none; }
    .mn-cta-btn { flex: 1; display: grid; place-items: center; min-height: 52px; border-radius: 14px;
                  background: var(--red); color: #fff; font-weight: 700; font-size: 15.5px;
                  letter-spacing: -.02em; box-shadow: 0 8px 18px rgba(231, 0, 19, .26); text-align: center; }
    .mn-cta-btn:hover, .mn-cta-btn:focus { background: var(--red-2); color: #fff; }
    .mn-cta-btn.is-ghost { flex: 0 0 auto; padding-inline: 1.1rem; background: #fff; color: var(--navy-2);
                           border: 1px solid var(--line-2); box-shadow: 0 6px 14px rgba(16, 32, 63, .08); }

    /* ── Page « 전체 » ───────────────────────────────────────────────────── */
    /* Au-dessus de .site-header (z-index 100) : « 전체 » est une page, pas un panneau. */
    .mn-all { display: flex; position: fixed; inset: 0; z-index: 125; flex-direction: column; background: #fff;
              transform: translateX(100%); transition: transform .3s cubic-bezier(.3,.8,.3,1); }
    .mn-all[hidden] { display: flex; }
    .mn-all.is-on { transform: none; }
    .mn-all-head { display: flex; align-items: center; gap: 5px; padding: 7px 10px; flex: none;
                   box-shadow: 0 1px 0 var(--line); padding-top: calc(7px + env(safe-area-inset-top)); }
    .mn-all-head b { font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; }
    .mn-back { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none;
               border-radius: 12px; color: var(--navy-2); cursor: pointer; }
    .mn-back:active { background: var(--panel); }
    .mn-back:focus-visible, .mn-tabs .mn-tab:focus-visible, .pn-btn:focus-visible, .pn-li:focus-visible {
        outline: 2px solid var(--red); outline-offset: -3px; border-radius: 10px; }
    .mn-all-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
                   padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
    .mn-search { display: flex; align-items: center; gap: 9px; margin: 13px 16px 2px; height: 48px;
                 background: #f2f4f9; border-radius: 14px; padding: 0 15px; color: var(--mn-off); }
    .mn-search input { flex: 1; min-width: 0; border: 0; background: none; font: 400 16px var(--font);
                       color: var(--text); }
    .mn-search input::placeholder { color: var(--mn-off); }
    .mn-search input:focus { outline: none; }
    /* Rail latéral « à la coréenne » (R2, 2026-09-20) : rubriques à gauche, tout le menu à la suite à droite. */
    .mn-rx { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
    .mn-rx-top { flex: none; display: flex; align-items: center; gap: 8px; padding-right: 14px; }
    .mn-rx-top .mn-search { flex: 1; min-width: 0; margin-right: 0; }
    .mn-rx-lang { display: inline-flex; flex: none; margin-top: 11px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px;
                  font-size: 12px; font-weight: 700; white-space: nowrap; }
    .mn-rx-lang > * { padding: 5px 10px; border-radius: 999px; color: var(--muted); }
    .mn-rx-lang .is-on { background: var(--navy); color: #fff; }
    .mn-rx-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 86px minmax(0, 1fr); margin-top: 12px; border-top: 1px solid var(--line); }
    .mn-rx-rail { display: flex; flex-direction: column; overflow-y: auto; background: #f5f7fb; padding-bottom: env(safe-area-inset-bottom); }
    .mn-rl { position: relative; display: grid; justify-items: center; gap: 5px; padding: 14px 6px 13px; text-align: center;
             font-size: 12.5px; font-weight: 500; line-height: 1.25; color: #5d6578; word-break: keep-all; }
    .mn-rl .icon { color: #8a93a8; } .mn-rl .icon path[opacity] { opacity: 0; }
    .mn-rl.is-on { background: #fff; color: var(--navy); font-weight: 700; }
    .mn-rl.is-on .icon { color: var(--navy); } .mn-rl.is-on .icon path[opacity] { opacity: .2; }
    .mn-rl.is-on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
    .mn-rl:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
    .mn-rx-list { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 14px 24px; }
    .mn-rs { padding-top: 6px; } .mn-rs + .mn-rs { margin-top: 10px; }
    .mn-rt { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 0 8px; background: #fff;
             font-size: 14.5px; font-weight: 800; line-height: 1.7; letter-spacing: normal; color: var(--navy-2); }
    .mn-rt .icon { color: var(--navy); }
    .mn-rt a { margin-left: auto; font-size: 12.5px; font-weight: 500; color: #7b8499; }
    .mn-row { display: flex; align-items: center; gap: 11px; min-height: 52px; padding-right: 22px; font-size: 14.5px; line-height: 1.35;
              color: var(--text); word-break: keep-all; border-bottom: 1px solid #eef0f5;
              background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3abbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat right center / 16px; }
    .mn-row.is-on { color: var(--navy); font-weight: 700; }
    .mn-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #eef2fa; color: var(--navy); }
    .mn-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 4px; margin-bottom: 4px; }
    .mn-qi { display: grid; justify-items: center; gap: 8px; text-align: center; line-height: 1.3;
             font-size: 11.5px; font-weight: 500; letter-spacing: -.02em; color: var(--text-2); }
    .mn-box { width: 52px; height: 52px; border-radius: 17px; background: #eef2fa; display: grid;
              place-items: center; color: var(--navy); transition: transform .12s ease; }
    .mn-qi:active .mn-box { transform: scale(.94); }
    .mn-qi.is-hot { color: var(--red); font-weight: 700; }
    .mn-qi.is-hot .mn-box { background: #fdecee; color: var(--red); }
    .mn-rx .mn-quick { grid-template-columns: repeat(3, 1fr); gap: 14px 2px; margin: 4px 0 6px; }
    .mn-rx .mn-qi { gap: 7px; font-size: 12.5px; font-weight: 400; letter-spacing: normal; color: var(--text); word-break: keep-all; }
    .mn-rx .mn-qi.is-hot { color: var(--red); font-weight: 700; }
    .mn-rx .mn-box { width: 50px; height: 50px; border-radius: 16px; }
    .mn-rx-end { height: 55vh; }   /* la dernière rubrique peut remonter en haut de la liste */

    body.mn-locked { overflow: hidden; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sommaire de page (maquette C) — les pages longues font 20 à 31 écrans sur
   téléphone : barre collante « section en cours · 3/9 », fil de progression,
   feuille de saut et retour en haut. Monté par site.js quand la page compte
   au moins quatre sections ancrées.
   ═══════════════════════════════════════════════════════════════════════════ */
.pn-bar, .pn-sheet, .pn-veil, .pn-up { display: none; }

@media (max-width: 1179.98px) {
    /* L'en-tête s'efface au défilement vers le bas et revient dès qu'on remonte : sans cela,
       en-tête + barre de section + barre d'action + onglets mangeraient 29 % de l'écran. */
    .site-header { transition: transform .28s cubic-bezier(.3,.8,.3,1); }
    body.hd-off .site-header { transform: translateY(-100%); }
    body.hd-off .pn-bar { top: 0; }
    .pn-bar { top: var(--pn-top, 56px); transition: top .28s cubic-bezier(.3,.8,.3,1); }
    .pn-bar { display: block; position: sticky; z-index: 80; background: rgba(255, 255, 255, .97);
              backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
              box-shadow: 0 1px 0 var(--line); }
    .pn-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px;
              border: 0; background: none; text-align: left; cursor: pointer; color: var(--text); }
    .pn-btn > .icon { color: var(--navy); flex: none; }
    .pn-btn b { font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; overflow: hidden;
                text-overflow: ellipsis; white-space: nowrap; }
    .pn-btn i { display: flex; align-items: center; gap: 5px; margin-left: auto; flex: none;
                font: 700 12px/1 var(--mono, "JetBrains Mono", ui-monospace, monospace); color: var(--muted);
                font-style: normal; font-variant-numeric: tabular-nums; }
    .pn-prog { height: 3px; background: var(--line); }
    .pn-prog i { display: block; height: 100%; width: 0; background: var(--red); transition: width .12s linear; }

    .pn-veil { display: block; position: fixed; inset: 0; z-index: 118; background: rgba(8, 18, 48, .45);
               opacity: 0; pointer-events: none; transition: opacity .25s ease; }
    .pn-veil.is-on { opacity: 1; pointer-events: auto; }
    .pn-sheet { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 119; flex-direction: column;
                max-height: 72%; background: #fff; border-radius: 20px 20px 0 0;
                box-shadow: 0 -18px 40px rgba(8, 18, 48, .22);
                transform: translateY(102%); transition: transform .3s cubic-bezier(.3,.8,.3,1); }
    .pn-sheet.is-on { transform: none; }
    .pn-grab { width: 44px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 4px; flex: none; }
    .pn-sheet-head { display: flex; align-items: center; gap: 10px; padding: 4px 16px 10px; flex: none;
                     box-shadow: 0 1px 0 var(--line); }
    .pn-sheet-head h2 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
    .pn-x { width: 40px; height: 40px; margin-left: auto; display: grid; place-items: center; border: 0;
            background: var(--panel); border-radius: 10px; color: var(--text); cursor: pointer; }
    .pn-list { overflow-y: auto; padding: 4px 0 calc(16px + env(safe-area-inset-bottom)); }
    .pn-li { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px;
             border: 0; background: none; text-align: left; cursor: pointer; font-size: 15.5px;
             letter-spacing: -.02em; color: var(--text-2); }
    .pn-li u { text-decoration: none; width: 18px; flex: none;
               font: 700 11px/1 var(--mono, "JetBrains Mono", ui-monospace, monospace); color: var(--dim); }
    .pn-li s { text-decoration: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
    .pn-li.is-done s { background: var(--navy); }
    .pn-li.is-on { color: var(--navy); font-weight: 700; background: var(--panel); }
    .pn-li.is-on s { background: var(--red); box-shadow: 0 0 0 4px rgba(231, 0, 19, .15); }

    .pn-up { display: grid; place-items: center; position: fixed; right: 14px; z-index: 86;
             bottom: calc(86px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 999px;
             background: #fff; border: 1px solid var(--line-2); color: var(--navy); cursor: pointer;
             box-shadow: 0 8px 22px rgba(8, 18, 48, .18);
             opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .2s, transform .2s; }
    .pn-up.is-on { opacity: 1; transform: none; pointer-events: auto; }
    .mn-cta.is-on ~ .pn-up { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .mn-all, .mn-cta, .pn-sheet, .pn-veil, .pn-up, .pn-prog i { transition: none; }
}

/* Disque de saisie des repères de carte (voir site.js) : jamais peint, mais toujours
   sensible au pointeur — « all » vaut pour le fond comme pour le contour. */
.rm-hit { fill: none; stroke: none; pointer-events: all; cursor: pointer; }

/* Sélecteur de gouvernorat du guide : voie tactile de la carte des zones, où les
   gouvernorats du nord ne mesurent que 17 à 20 px. Masqué dès que la carte est
   assez grande pour être visée au pointeur. */
.gd-pick { display: grid; gap: .35rem; margin-top: .8rem; }
.gd-pick label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .72); }
.gd-pick select { width: 100%; min-height: 50px; padding: 0 2.6rem 0 1rem; font-family: var(--font); color: #fff;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%), linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
    background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.gd-pick select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gd-pick option { color: var(--text); }
@media (min-width: 1180px) { .gd-pick { display: none; } }


/* ── Plancher de 12 px sur le texte secondaire (téléphone et tablette) ───────
   Le site descend jusqu'à 9,6 px sur les libellés, lisible sur un écran de
   bureau, beaucoup moins en coréen sur un téléphone. La liste ci-dessous est
   celle des règles qui passaient sous 0,75rem et s'appliquaient déjà sur
   mobile ; les proportions du bureau ne changent pas. Deux exclusions :
   les en-têtes de tableau (grilles denses du guide et du benchmark, qui ont
   leur propre échelle) et l'ancien menu mobile, supprimé. */
@media (max-width: 1179.98px) {
    .brand-sub, .nav-menu-link small, .stat-detail, .sector-card-num, .sector-card-en, .card-kicker,
    .breadcrumb, .aside-box h4, .aside-box .aside-title, .blk-quote cite, .pt-kicker, .pt-fl,
    .pt-hubs em, .source-note-label, .news-meta, .tag, .korea-milestones dt, .korea-doors figcaption,
    .ct-field label, .ct-detail-label, .sx-figure-source, .vc-count, .vc-node small, .vc-k,
    .vc-logo-text, .vc-place, .sx-band-source, .sx-map-src, .pc-label, .pc-k, .pc-services-title,
    .rm-card-route, .lg-mode em, .lg-tab small, .lg-drawer-hint, .lg-chip small, .lg-list-h,
    .lg-row b small, .lg-row .f, .lg-legend, .lg-zoom-hint, .lg-method-tag, .lg-sector-tag,
    .lg-banner-hl span, .em-press-lang, .em-col-title small, .ab-kicker, .fp-credit,
    .fp-visit-media figcaption span, .fp-badge, .fp-tl-date span, .fp-tl-kind, .fp-tl-photo figcaption,
    .fp-figs small, .fp-figs-src, .fp-band-kicker, .gl-eyebrow, .ini-fact .ini-fact-d, .ini-logo-box b,
    .ini-logo small, .cs-inset figcaption small, .cs-thumbs figcaption, .cs-brand span, .cs-tags dt,
    .cs-src, .dc-lang, .dc-meta, .dc-fmt, .sx-doc-k, .sx-doc-meta, .bm-table thead th, .bm-c small,
    .bms-rg > span, .bms-name small, .nd-ticker > b, .nd-label, .nd-cite, .nd-fig, .nd-src-badge,
    .nd-market-facts dt, .nd-nav a i, .nd-en, .nd-mcard-foot, .tp-credit, .tp-since, .tp-city, .tp-en,
    .tp-nums dt, .tp-line b, .tp-tenants b, .tp-tenants li, .tp-tag, .tp-mini-body .tp-city, .tp-src,
    .gd-fig span, .gd-dels b, .gd-legend .t, .gd-zone small, .gd-pill-nc, .gd-lines li small,
    .gd-plans .gd-ph small, .gd-plans td small, .gd-tag, .gd-src, .gd-card .gd-fig .won,
    .gd-lines b .won, .srcn summary, .srccite-chip, .srcpop-title, .srcpop .asof, .gc-nav-link small,
    .gi-body small, .wr-k, .wr-meta, .wr-lbl, .wr-unit, .wr-help, .wr-mine, .wr-reset { font-size: .75rem; }
}

/* ── Reste du plancher : valeurs posées en px ────────────────────────────────
   Le tableau des départs du héros d'accueil imite un panneau d'aéroport, d'où
   des corps très petits ; sur téléphone ils deviennent illisibles. Les libellés
   des onglets et des tuiles de la navigation mobile restent, eux, à 10,5–11,5 px :
   ce sont des étiquettes courtes, très contrastées et doublées d'un pictogramme,
   comme dans toutes les applications coréennes. */
@media (max-width: 1179.98px) {
    .gw-hd { font-size: 11.5px; }
    .gw-bf { font-size: 12px; }
    .gw-f { font-size: 12.5px; }

    /* Cibles tactiles des listes de liens (pied de page, colonnes de contact, sommaire
       de « 전체 ») : 18 à 23 px de haut, sous le minimum de 24 px de la WCAG 2.5.8.
       Les liens en pleine phrase en sont dispensés par la norme et restent tels quels. */
    .ft-col a, .ft-legal a, .ft-contact a, .ft-contact li > a, .ft-embassy a, .ft-credit a,
    .ft-note a, .legal-privacy-link, .mn-st a, .ft-imprint a, .arrow-link, .gw-bf a { padding-block: .3rem; display: inline-block; }
    .pc-reveal { padding-block: .35rem; }
    .breadcrumb a, .wr-src a, .gd-card-f a, .srcn li a, .gd-lbl a, .fp-source, .dc-meta a,
    .lg-method-tag a, .rx-figure-link, .nd-cite a, .lib-item a, .lv-link { padding-block: .3rem; display: inline-block; }
    .gd-legend button, .lx-tab, .bm-chip { min-height: 28px; }
    /* « 홈 » du fil d'Ariane ne fait qu'un caractère : 12 px de large. On élargit la
       zone sans déplacer le texte. */
    .breadcrumb a { padding-inline: .35rem; margin-inline: -.35rem; }
    /* Cases à cocher natives : 13 px de côté, impossibles à viser au doigt. */
    input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
    /* Curseurs du simulateur : 6 px de haut, on élargit la zone de saisie. */
    input[type="range"] { height: 28px; }
}

/* Les équivalents en won sont posés en em : ils suivent leur parent et retombent
   sous le plancher dès que celui-ci est petit. On les cale en absolu sur mobile. */
@media (max-width: 1179.98px) {
    .won { font-size: .75rem; }
    .figure-value .won, .gd-fig .won, .tp-nums .won { font-size: .7rem; }
}

/* ── Indice de défilement horizontal (voir site.js) ──────────────────────────
   Un dégradé au bord droit tant qu'il reste du contenu, au bord gauche dès
   qu'on a commencé. L'invite disparaît au premier déplacement. */
.is-hscroll { position: relative; scroll-behavior: smooth; }
.is-hscroll::before, .is-hscroll::after {
    content: ""; position: sticky; top: 0; display: block; width: 34px; height: 0; z-index: 2;
    pointer-events: none; float: left; }
.is-hscroll::after { float: right; }
.is-hscroll { background-image:
        linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
        linear-gradient(to left, #fff 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(16,32,63,.16), rgba(16,32,63,0)),
        linear-gradient(to left, rgba(16,32,63,.16), rgba(16,32,63,0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 36px 100%, 36px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll; }
.is-hscroll:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.hsc-hint { position: sticky; left: 0; float: right; display: inline-flex; align-items: center; gap: .3rem;
    margin: .5rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(16,32,63,.86); color: #fff;
    font-size: .72rem; font-weight: 700; white-space: nowrap; z-index: 3; pointer-events: none; }
.hsc-hint::after { content: "→"; animation: hsc-nudge 1.3s ease-in-out infinite; }
@keyframes hsc-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .hsc-hint::after { animation: none; } }
@media (min-width: 1180px) { .hsc-hint { display: none; } }

/* Fiche dont le sommaire latéral a servi à bâtir la barre collante : sur téléphone
   les deux feraient double emploi, et le sommaire inline coûte un demi-écran. */
@media (max-width: 1179.98px) { [data-toc].is-duplicated { display: none; } }

/* ── Pied de page sur téléphone : volets repliés (voir site.js) ──────────────
   Six colonnes empilées faisaient 2 473 px. Les groupes de liens se replient,
   le bloc de coordonnées de la colonne « 문의 » disparaît (l'ourlet légal porte
   déjà les mêmes coordonnées de l'ambassade), et les marges se resserrent. */
@media (max-width: 719.98px) {
    .ft-grid { gap: 0; padding-block: 2.2rem 1rem; }
    .ft-col:not(.ft-brand-col) { gap: 0; }
    .ft-acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px;
        width: 100%; min-height: 54px; padding: 0; border: 0; background: none; cursor: pointer;
        font: 800 1.02rem var(--font); letter-spacing: .01em; color: var(--text); text-align: left;
        box-shadow: 0 1px 0 var(--line); }
    .ft-acc-btn svg { flex: none; color: var(--muted); transition: transform .2s ease; }
    .ft-acc-btn.is-open { color: var(--navy); }
    .ft-acc-btn.is-open svg { transform: rotate(180deg); }
    .ft-acc-btn:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
    .ft-acc-body { display: grid; padding: .2rem 0 .9rem; box-shadow: 0 1px 0 var(--line); }
    .ft-acc-body[hidden] { display: none; }
    .ft-acc-body a { min-height: 42px; }
    .site-footer .ft-contact { display: none; }
}
/* Tablette et fenêtre de bureau étroite : colonnes ordinaires, sans volets. */
@media (max-width: 1179.98px) {
    /* Bloc de marque : resserré, logos partenaires à taille lisible mais sobre */
    .ft-brand-col { gap: .9rem; padding-bottom: 1.4rem; }
    .ft-embassy img { height: 52px; }
    .ft-partners { gap: 1.4rem; margin-top: 0; }
    .ft-partners img { height: 54px; }
    .ft-partners .fipa-logo { height: 62px; }
    .ft-partners .tkcc-logo { height: 46px; }

    /* Ourlet légal : une ligne par information, sans séparateurs flottants */
    .ft-bottom-inner { padding-block: 1rem; gap: .9rem; }
    .ft-legal { gap: .4rem 1.2rem; }
    .ft-imprint { padding-block: .9rem 1.2rem; line-height: 1.6; }
}

/* ── Carte logistique sur téléphone : zoom posé dans la carte (voir site.js) ── */
@media (max-width: 1000px) {
    .lg-mapwrap { position: relative; order: 3; margin-inline: 1rem; width: calc(100% - 2rem); }
    .lg-mapwrap > svg { margin-inline: 0 !important; width: 100% !important; }
    .lg-mapwrap > .lg-zoom { position: absolute; right: .7rem; bottom: .7rem; z-index: 3; }
    .lg-mapwrap .lg-zoom-hint { display: none; }   /* « drag » : sans objet au doigt */
    .lg-bottom:empty { display: none; }
}

/* ── Activités diplomatiques bilatérales (page Corée + rubrique des actualités) ── */
.fp-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) { .fp-acts { grid-template-columns: 1fr; } }
.fp-act { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(16, 24, 40, .1); border-radius: 14px;
    overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.fp-act:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 24, 40, .12); }
.fp-act-media { display: block; aspect-ratio: 16 / 9; background: #e9ecf2; overflow: hidden; }
.fp-act-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-act-body { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.fp-act-body time { font-size: .8rem; opacity: .6; }
.fp-act-body b { font-size: 1.02rem; line-height: 1.4; word-break: keep-all; }
.fp-act-sum { font-size: .88rem; opacity: .75; line-height: 1.55; word-break: keep-all; }
.fp-act .fp-tl-kind { justify-self: start; }
.fp-acts-more { margin: 1.4rem 0 0; text-align: right; }
.nd-bilateral-more { margin: 1rem 0 0; text-align: right; }

/* ── Bandeau des 4 secteurs : deux colonnes sur téléphone ────────────────────
   Empilé, il occupait 379 px pour quatre liens. En tuiles — pictogramme au-dessus
   du libellé, comme la grille 바로가기 de « 전체 » — il tient sur deux rangées et
   les cibles restent larges. Le titre garde la pleine largeur. */
@media (max-width: 719.98px) {
    .sector-strip { grid-template-columns: 1fr 1fr; gap: .55rem .6rem; }
    .sector-strip-title { grid-column: 1 / -1; padding-right: 0; margin-bottom: -.2rem; }
    .sector-strip-link { flex-direction: column; text-align: center; gap: .45rem;
                         padding: .35rem .3rem; border-radius: var(--radius); }
    .sector-strip-link .icon-box { width: 48px; height: 48px; }
    .sector-strip-link strong { font-size: .98rem; }
    .sector-strip-link > span:last-child { min-width: 0; }
    .sector-strip-link span { font-size: .72rem; line-height: 1.35; }
}

/* ── Liens de guide des pages secteurs : deux colonnes sur téléphone ─────────
   Quatre libellés de onze caractères au plus, chacun sur sa ligne pleine largeur :
   261 px pour quatre liens. En deux colonnes, le pictogramme reste à gauche du
   texte — les libellés sont assez courts pour ne pas passer à la ligne. */
@media (max-width: 719.98px) {
    .sx-guide-list { grid-template-columns: 1fr 1fr; gap: .5rem; }
    /* Pictogramme au-dessus du libellé : à gauche, il ne laissait que 95 px au texte
       et « 국가이익프로젝트 » se coupait en plein mot. Au-dessus, le libellé dispose de
       toute la tuile et tient sur une ligne. */
    .sx-guide-list a { flex-direction: column; align-items: center; text-align: center; gap: .45rem;
                       padding: .85rem .5rem; font-size: .92rem; overflow-wrap: normal; word-break: keep-all; }
    .sx-guide-list a:hover { transform: translateY(-2px); }
}

/* Cartes de bonus du guide, à deux colonnes sur téléphone : le taux et le plafond
   forment une seule donnée (« 70% · 연 2만 ») et ne doivent pas se scinder. */
@media (max-width: 560px) {
    .gd-x { padding: .55rem .6rem; gap: .5rem; }
    .gd-x b { white-space: nowrap; font-size: .8rem; }
    .gd-x .ib-ico { width: 30px; height: 30px; }
}

/* ── Newsletter (/newsletter/) ─────────────────────────────────────── */
.nl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 3rem 4.5rem; align-items: start; }
@media (min-width: 1024px) { .nl-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; } .nl-grid--single { grid-template-columns: minmax(0, 46rem); } }
.nl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.nl-card h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 .8rem; }
.nl-card h2:first-of-type { margin-top: 0; }
.nl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-services { display: grid; gap: .6rem; }
.nl-service { display: flex; gap: .8rem; align-items: flex-start; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: .85rem 1rem; cursor: pointer; }
.nl-service:has(input:checked) { border-color: var(--navy); background: var(--panel); }
.nl-service input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--navy); flex: none; }
.nl-service b { display: block; font-size: 1rem; }
.nl-service span { font-size: .88rem; color: var(--text-2); }
.nl-topics { border: 0; padding: 0; margin: 1.2rem 0 0; }
.nl-topics legend { font-size: .8rem; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: .6rem; padding: 0; }
.nl-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.nl-chip input, .nl-frequency input { position: absolute; opacity: 0; pointer-events: none; }
.nl-chip span { display: inline-block; border: 1.5px solid var(--line-2); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: .9rem; cursor: pointer; }
.nl-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.nl-chip input:focus-visible + span, .nl-frequency input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.nl-frequency { display: inline-flex; margin-top: .9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.nl-frequency span { display: block; padding: .6rem 1rem; font-weight: 700; font-size: .88rem; cursor: pointer; }
.nl-frequency input:checked + span { background: var(--navy); color: #fff; }
.nl-row { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .nl-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.nl-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); margin-bottom: .3rem; }
.nl-field input { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: .8rem .9rem; font: inherit; }
.nl-field input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 43, 95, .12); }
.nl-consent-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0 .8rem; font-size: .85rem; border: 1px solid var(--line); }
.nl-consent-table caption { text-align: left; font-size: .8rem; font-weight: 700; color: var(--muted); padding-bottom: .4rem; }
.nl-consent-table th, .nl-consent-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.nl-consent-table th { width: 6.5rem; background: var(--panel); font-weight: 700; white-space: nowrap; }
.nl-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.nl-consent input { margin-top: .25rem; accent-color: var(--navy); flex: none; }
.nl-consent a, .nl-leave a { text-decoration: underline; font-weight: 700; }
.nl-submit { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 1.2rem; }
.nl-submit span, .nl-leave { font-size: .85rem; color: var(--muted); }
.nl-leave { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.nl-error { color: var(--red-2); font-size: .85rem; font-weight: 700; margin: .4rem 0; display: block; }
.nl-ok { background: #e5f3ea; color: #1c6a40; border-radius: var(--radius-sm); padding: .7rem 1rem; font-weight: 700; margin-bottom: 1.2rem; }
.nl-side { display: grid; gap: 1.2rem; }
.nl-latest { display: block; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.6rem; }
.nl-latest:hover { background: var(--navy-2); color: #fff; }
.nl-latest-label { display: block; font-size: .75rem; letter-spacing: .16em; color: var(--navy-light); font-weight: 700; margin-bottom: .6rem; }
.nl-latest b { display: block; font-size: 1.25rem; line-height: 1.4; margin-bottom: .8rem; }
.nl-latest span:last-child { font-size: .88rem; color: var(--navy-soft); }
.nl-archive { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.nl-archive h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.nl-archive a { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .8rem; padding: .6rem 0; border-top: 1px dashed var(--line-2); font-size: .9rem; }
.nl-archive a:first-of-type { border-top: 0; }
.nl-archive a b { color: var(--navy); }
.nl-archive p { color: var(--muted); font-size: .9rem; }
.nl-issue { padding-block: 2.5rem 4.5rem; }
.nl-issue-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.nl-issue-mail { max-width: 660px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.nl-issue-mail h1, .nl-issue-mail h2, .nl-issue-mail h3 { letter-spacing: 0; }
.nl-issue-cta { text-align: center; margin-top: 2.5rem; }
.nl-issue-cta p { font-weight: 700; margin-bottom: 1rem; }
.nl-issue-cta .link-row { justify-content: center; }
.nl-band { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1.4rem 1.8rem; margin-block: 2.5rem 1.5rem; }
.nl-band b { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.nl-band span { color: var(--text-2); font-size: .92rem; }

/* ── Pied de page : ruban marine de la newsletter (partials/footer_newsletter.html — maquette F2) ── */
.ft-ribbon { background: var(--navy); color: #fff; }
.ft-ribbon-in { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; padding-block: 1.5rem; }
.ft-ribbon-text b { display: block; font-size: 1.1rem; font-weight: 900; }
.ft-ribbon-text span { display: block; font-size: .86rem; color: var(--navy-soft); margin-top: .15rem; word-break: keep-all; }
.ft-ribbon-form { display: flex; gap: .55rem; flex-wrap: wrap; margin-left: auto; flex: 1 1 24rem; max-width: 32rem; }
.ft-ribbon-form input[type=email] { flex: 1 1 12rem; min-width: 0; border: 1.5px solid transparent; border-radius: var(--radius-sm); padding: .7rem 1rem; font: inherit; background: #fff; color: var(--text); }
.ft-ribbon-form input[type=email]:focus { outline: 0; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.ft-ribbon-form .btn { padding-block: .7rem; }
/* Inscriptions fermées : annonce à la place du champ (Réglages › Newsletter). */
.ft-ribbon-soon { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: 0 0 0 auto; }
.ft-ribbon-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: .9rem; border-radius: 999px; padding: .45rem 1rem; }
.ft-ribbon-soon a { color: #fff; font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.nl-soon-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: .35rem .9rem; margin: 0 0 1rem; }
.nl-soon > h2:first-of-type { font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--navy); margin: 0 0 .6rem; }
.nl-soon > p { line-height: 1.75; word-break: keep-all; }
.nl-soon .link-row { margin-top: 1.4rem; }
.nl-soon .nl-archive { margin-top: 2rem; }
@media (max-width: 640px) { .ft-ribbon-form { margin-left: 0; max-width: none; flex-basis: 100%; } .ft-ribbon-form .btn { flex: 1 1 100%; } }

/* ═══════════════════════════════════════════════════════════════════════════
   Partage — maquette B validée le 2026-09-19 (mockups/share-print/index.html).
   Un bouton « 공유 » en bout de fil d'Ariane (et dans le pied de page), une
   feuille <dialog> : tiroir bas au téléphone, fenêtre centrée sur ordinateur.
   Le bouton hérite de la couleur du fil d'Ariane : il tient sur héros clair
   comme sombre sans variante.
   ═══════════════════════════════════════════════════════════════════════════ */
.sh-btn { display: inline-flex; align-items: center; gap: .4rem; font-family: inherit; font-weight: 700; font-size: .78rem; line-height: 1; letter-spacing: 0;
          color: inherit; background: none; border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
          border-radius: 999px; padding: .42rem .85rem .42rem .7rem; cursor: pointer; white-space: nowrap;
          transition: background .2s ease, color .2s ease, border-color .2s ease; }
.sh-btn:hover, .sh-btn:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; }
.sh-ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.breadcrumb { align-items: center; }
/* Fil d'Ariane : rond blanc (lisible sur toute photo) qui s'étire en pastille « 공유 » au survol / au clavier,
   deux ondes d'appel à l'arrivée sur la page — maquette « D animée » validée le 2026-09-20 (mockups/share-button).
   Les ondes sont une ombre portée : elles ne sont pas rognées par overflow: hidden, qui masque le libellé au repos. */
.breadcrumb .sh-btn { --sh-ring: 26, 43, 95; position: relative; margin-left: auto; width: 2.5rem; height: 2.5rem; padding: 0 0 0 .72rem; gap: .8rem;   /* .55rem laissait dépasser 3 px du mot « 공유 » dans le rond, visible sur fond clair */
                      justify-content: flex-start; overflow: hidden; font-size: .8rem; color: var(--navy-2); background: #fff; border: 0;
                      box-shadow: 0 0 0 1px var(--line-2), 0 2px 8px rgba(10, 18, 44, .08);
                      transition: width .35s cubic-bezier(.3, .7, .2, 1), background .2s ease, color .2s ease;
                      animation: sh-wave 1.5s 1.2s 2 ease-out; }
.breadcrumb.light .sh-btn, .breadcrumb-light .sh-btn, .gd-hero .breadcrumb .sh-btn, .gc-hero .breadcrumb .sh-btn { --sh-ring: 255, 255, 255; color: var(--navy-2); box-shadow: 0 4px 14px rgba(10, 18, 44, .22); }
.breadcrumb .sh-btn .sh-ico { width: 1.05rem; height: 1.05rem; }
.breadcrumb .sh-btn:hover, .breadcrumb .sh-btn:focus-visible { width: 5.3rem; color: #fff; background: var(--navy-2); }
.breadcrumb .sh-btn .sh-ico path:not(:last-child) { transition: transform .3s cubic-bezier(.3, .7, .2, 1); }
.breadcrumb .sh-btn:hover .sh-ico path:not(:last-child), .breadcrumb .sh-btn:focus-visible .sh-ico path:not(:last-child) { transform: translateY(-2.5px); }
@keyframes sh-wave { from { box-shadow: 0 4px 14px rgba(10, 18, 44, .22), 0 0 0 0 rgba(var(--sh-ring), .8); }
                     to   { box-shadow: 0 4px 14px rgba(10, 18, 44, .22), 0 0 0 16px rgba(var(--sh-ring), 0); } }
@media (prefers-reduced-motion: reduce) { .breadcrumb .sh-btn { animation: none; transition: none; } .breadcrumb .sh-btn .sh-ico path { transition: none; } }
.site-footer .sh-btn:hover { background: #fff; border-color: #fff; color: var(--navy-2); }
.site-footer .sh-btn { color: inherit; margin-right: .4rem; }

.sh-sheet { border: 0; padding: 0; background: #fff; color: var(--text); width: min(26rem, calc(100vw - 2rem));
            border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 32, 63, .3); overflow: visible; }
.sh-sheet::backdrop { background: rgba(16, 32, 63, .5); }
.sh-in { padding: 1.2rem 1.3rem 1.3rem; }
.sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.sh-head h2 { margin: 0; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.sh-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; width: 2.4rem; height: 2.4rem; margin: -.5rem -.6rem -.5rem 0;
            color: var(--muted); cursor: pointer; border-radius: 50%; }
.sh-close:hover { background: var(--panel); color: var(--text); }
.sh-card { display: flex; gap: .7rem; align-items: center; background: var(--panel); border-radius: 10px; padding: .5rem; margin-bottom: 1.1rem; }
.sh-thumb { width: 120px; height: 63px; border-radius: 6px; overflow: hidden; flex: none; background: var(--line); }
.sh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-card b { font-size: .84rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.sh-card small { font-size: .74rem; color: var(--muted); }
.sh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem .2rem; }
.sh-grid a, .sh-grid button { display: grid; justify-items: center; gap: .35rem; width: 100%; border: 0; background: none; padding: .2rem 0;
                              font-family: inherit; font-weight: 500; font-size: .76rem; line-height: 1.3; color: var(--text-2); cursor: pointer; text-decoration: none; }
.sh-grid a:hover, .sh-grid button:hover { color: var(--navy); }
.sh-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 1rem/1 system-ui, sans-serif;
          font-style: normal; color: #fff; transition: transform .15s ease; }
.sh-grid a:hover .sh-dot, .sh-grid button:hover .sh-dot { transform: translateY(-2px); }
.sh-dot svg { width: 24px; height: 24px; fill: currentColor; }
.sh-dot .sh-ico { width: 21px; height: 21px; fill: none; }
.sh-kakao { background: #fee500; color: #191919; } .sh-naver { background: #03c75a; } .sh-band { background: #00c4b3; font-size: 1.25rem; }
.sh-linkedin { background: #0a66c2; } .sh-facebook { background: #1877f2; font-size: 1.3rem; } .sh-x { background: #000; }
.sh-plain { background: var(--panel); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-2); }
.sh-url { display: flex; margin-top: 1.1rem; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.sh-url input { flex: 1; min-width: 0; border: 0; padding: .6rem .7rem; font: 500 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: #fff; }
.sh-url button { border: 0; background: var(--navy); color: #fff; font-family: inherit; font-weight: 700; font-size: .8rem; padding: 0 1rem; cursor: pointer; }
.sh-url button:hover { background: var(--navy-2); }
.sh-msg { margin: .6rem 0 0; min-height: 1.2em; font-size: .78rem; font-weight: 700; color: var(--navy); }
@media (max-width: 640px) {
    .sh-sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; }
    .sh-in { padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); }
    .sh-in::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -.4rem auto .8rem; }
    .sh-sheet[open] { animation: sh-up .22s ease-out; }
}
@keyframes sh-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sh-sheet[open] { animation: none; } .sh-dot { transition: none; } }

/* Éléments réservés au document imprimé (static/css/print.css les affiche). */
.pr-only { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   Carte d'investissement (/map/) — im-*
   Scénarios en tête, liste-légende à gauche, carte, fiche et lieux à droite ; téléphone : carte d'abord,
   bouton « 레이어 », légende et fiche en feuilles du bas. Moteur : static/js/investmap.js.
   ═══════════════════════════════════════════════════════════════════ */
.im-head { padding: 1.6rem 0 .2rem; }
.im-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .2rem 0 .4rem; }
.im-head p { margin: 0 0 1rem; max-width: 56rem; color: var(--muted); }
.im-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .8rem; }
.im-tab { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .65rem .85rem; font: inherit; color: var(--text); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.im-tab:hover { border-color: var(--navy); }
.im-tab b { display: block; font-size: .95rem; font-weight: 800; } .im-tab span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.im-tab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 10px 30px rgba(16,32,63,.18); } .im-tab[aria-selected="true"] span { color: #c9d4ee; }
.im-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.im { --bg: #0b1633; --land: #1b2c5a; --stroke: #0b1633; --ink: #fff; --ink-2: #dbe4f7; --ink-3: #9fb3e0; --hair: rgba(255,255,255,.12); --glass: rgba(11,22,51,.84); --on: #0b1633;
      --c-port: #6cc3ff; --c-fish: #5ee0b5; --c-air: #ffd34d; --c-tp: #4fe3d1; --c-iz: #ff9a52; --c-tour: #ff7eb6; --c-unesco: #c9a6ff; --c-museum: #ead7a4; --c-plan: #9be564; --c-mw: #ffb020; --c-rail: #e6ecfb; --c-ink: #9fb3e0; --c-fz: #7fd8ff; --c-border: #ff8d7a; --c-z2: #9c3f4c; --c-z1: #4f74bf;
      position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.2rem; margin: 0 0 2.5rem; padding: 1.1rem; border-radius: calc(var(--radius) + 6px); background: var(--bg); color: var(--ink); transition: background-color .3s, color .3s; }
.im[data-theme="light"] { --bg: #eaf3fb; --land: #fdfefe; --stroke: #b9cfe3; --ink: #10203f; --ink-2: #24365f; --ink-3: #50638a; --hair: rgba(16,32,63,.14); --glass: rgba(255,255,255,.9); --on: #fff;
      --c-port: #0a7fd0; --c-fish: #0f9d78; --c-air: #b97f00; --c-tp: #0b9c8f; --c-iz: #d9661a; --c-tour: #d23c8a; --c-unesco: #7457d9; --c-museum: #8a6d2f; --c-plan: #2a9447; --c-mw: #e08600; --c-rail: #33415f; --c-fz: #0b6fa8; --c-border: #c4412c; --c-z2: #f0a3a9; --c-z1: #a9c2ee; }
.im [hidden] { display: none !important; }
.im-switch { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.im-switch i { position: relative; width: 2.3rem; height: 1.25rem; border-radius: 999px; background: var(--hair); transition: background .2s; }
.im-switch i::after { content: ""; position: absolute; top: .16rem; left: .18rem; width: .93rem; height: .93rem; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.im-switch[aria-checked="true"] i { background: var(--navy); } .im-switch[aria-checked="true"] i::after { transform: translateX(1.02rem); }

/* liste-légende : une ligne de calque = une ligne de légende */
.im-rail { min-width: 0; display: flex; flex-direction: column; gap: .7rem; }
.im-rail h2 { margin: 0; font-size: 1.12rem; color: var(--ink); } .im-lead { margin: 0; font-size: .85rem; color: var(--ink-2); line-height: 1.6; } .im-lead a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.im-rail h3 { margin: .3rem 0 0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--ink-3); }
.im-sym { flex: 0 0 auto; width: 1.55rem; height: 1.55rem; display: block; } .im-sym-i { fill: var(--on); }
.im-lay { display: flex; align-items: center; gap: .5rem; padding: .3rem .45rem; border-radius: 8px; font-size: .88rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.im-lay:hover { background: var(--hair); }
.im-lay input { position: absolute; opacity: 0; pointer-events: none; }
.im-box { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; border-radius: 4px; border: 2px solid var(--ink-3); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.im-lay input:checked + .im-box { background: var(--ink); border-color: var(--ink); }
.im-lay input:checked + .im-box::after { content: ""; width: .5rem; height: .28rem; border: solid var(--bg); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.im-lay input:focus-visible + .im-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.im-lay input:not(:checked) ~ .im-sym, .im-lay input:not(:checked) ~ .im-nm, .im-lay input:not(:checked) ~ .im-ct { opacity: .5; }
.im-nm { flex: 1; min-width: 0; line-height: 1.35; } .im-nm small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.im-ct { font-size: .74rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.im-rail .im-lay.is-extra { display: none; } .im-rail.show-all .im-lay.is-extra { display: flex; }
.im-more { align-self: flex-start; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink-3); cursor: pointer; padding: .2rem .45rem; text-decoration: underline; text-underline-offset: 3px; }
.im-rail-foot { margin-top: auto; padding-top: .6rem; }
.im-rail-close { display: none; position: absolute; top: .7rem; right: .7rem; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--hair); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.im-intro-m, .im-lay-btn { display: none; }

/* carte */
.im-mapwrap { position: relative; min-width: 0; }
.im-map { position: relative; height: 560px; border-radius: 10px; overflow: hidden; background: var(--bg); touch-action: none; cursor: grab; }
.im-map.is-drag { cursor: grabbing; }
.im-map > svg { display: block; width: 100%; height: 100%; }
.im-gov { fill: var(--land); stroke: var(--stroke); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .3s; }
/* zones de développement régional : aplat par gouvernorat (mêmes codes que la carte du guide : plein = tout le gouvernorat, hachures = une partie) */
.im-pz0 { fill: var(--land); } .im-pz1 { fill: var(--c-z1); } .im-pz2 { fill: var(--c-z2); }
.im.zdr-on .im-gov { cursor: pointer; }
.im.zdr-on .im-z-all2 { fill: var(--c-z2); } .im.zdr-on .im-z-part2 { fill: url(#im-pat-p2); } .im.zdr-on .im-z-mix { fill: url(#im-pat-mix); } .im.zdr-on .im-z-part1 { fill: url(#im-pat-p1); }
.im.zdr-on .im-gov:hover { filter: brightness(1.12); } .im-gov.is-sel { stroke: var(--ink); stroke-width: 2.4; }
.im-zkey { display: none; grid-template-columns: 1fr 1fr; gap: .15rem .6rem; margin: 0 0 .3rem 2.1rem; font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.im.zdr-on .im-zkey { display: grid; } .im-rail:not(.show-all) .im-lay.is-extra + .im-zkey { display: none; }
.im-zkey span { display: inline-flex; align-items: center; gap: .35rem; } .im-zkey i { flex: 0 0 auto; width: .85rem; height: .85rem; border-radius: 2px; border: 1px solid var(--hair); }
.im-zkey .k-all2 { background: var(--c-z2); } .im-zkey .k-part2 { background: repeating-linear-gradient(45deg, var(--c-z2) 0 3px, var(--land) 3px 6px); }
.im-zkey .k-mix { background: repeating-linear-gradient(45deg, var(--c-z2) 0 3px, var(--c-z1) 3px 6px); } .im-zkey .k-part1 { background: repeating-linear-gradient(45deg, var(--c-z1) 0 3px, var(--land) 3px 6px); }
.im-gv text { font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .12em; fill: var(--ink-3); opacity: .85; paint-order: stroke; stroke: var(--land); stroke-width: 3px; pointer-events: none; }
.im-ln { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.im-ln-hit { fill: none; stroke: transparent; stroke-width: 14; vector-effect: non-scaling-stroke; cursor: pointer; pointer-events: stroke; outline: none; }
.im-ln-mw { stroke: var(--c-mw); stroke-width: 2.6; }
.im-ln-mwp { stroke: var(--c-mw); stroke-width: 2.4; stroke-dasharray: 7 6; stroke-linecap: butt; }
.im-ln-rail { stroke: var(--c-rail); stroke-width: 2.2; opacity: .85; } .im-ln-rail2 { stroke: var(--bg); stroke-width: 1.1; stroke-dasharray: 5 5; stroke-linecap: butt; }
.im-ln-railp { stroke: var(--c-rail); stroke-width: 2.2; stroke-dasharray: 2 5; }
@media (prefers-reduced-motion: no-preference) { .im-ln-mwp, .im-ln-railp { animation: im-dash 1.6s linear infinite; } }
@keyframes im-dash { to { stroke-dashoffset: -26; } }
.im [data-l].is-off, .im-pt.is-cl { display: none; }
.im-pt, .im-cl { cursor: pointer; outline: none; }
.im-pt .im-shape > * { stroke: var(--bg); stroke-width: 1.5; }
.im-ico { fill: var(--on); }
.im-dot { fill: var(--c); stroke: var(--bg); stroke-width: 1; }
.im-dot.im-hollow { fill: var(--bg); stroke: var(--c); stroke-width: 1.8; } .im-dot.im-dash { stroke-dasharray: 2.2 1.8; }
.im-ring { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0; }
.im-pt:hover .im-ring, .im-pt:focus-visible .im-ring, .im-pt.is-sel .im-ring { opacity: 1; }
.im-pt.is-sel .im-ring { stroke: var(--red); stroke-width: 2.5; }
.im-pt text { font-family: var(--font); font-size: 11.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 3.2px; stroke-linejoin: round; pointer-events: none; }
.im-cl .im-shape > * { stroke: var(--ink); stroke-width: 2; } .im-cl:hover .im-shape > *, .im-cl:focus-visible .im-shape > * { stroke: var(--red); stroke-width: 3; }
.im-cl text { font-family: var(--font); font-size: 12.5px; font-weight: 800; fill: var(--on); pointer-events: none; }
.im-zoom { position: absolute; right: .7rem; bottom: .7rem; display: flex; border-radius: 999px; overflow: hidden; background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--hair); }
.im-zoom button { width: 2.5rem; height: 2.5rem; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.im-zoom button[data-z="reset"] { width: auto; padding: 0 .5rem; font-size: .78rem; font-variant-numeric: tabular-nums; }
.im-zoom button:hover { background: var(--hair); } .im-zoom button:disabled { opacity: .35; cursor: default; }
.im-go { position: absolute; left: .7rem; bottom: .7rem; right: 10rem; display: flex; flex-wrap: wrap; gap: .3rem; pointer-events: none; }
.im-go button { pointer-events: auto; border: 1px solid var(--hair); background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ink); font: inherit; font-size: .76rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; cursor: pointer; }
.im-go button:hover { border-color: var(--ink-3); }
.im-tip { position: absolute; z-index: 3; max-width: 18rem; padding: .25rem .55rem; border-radius: 6px; background: #fff; color: var(--navy-2); font-size: .78rem; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; transform: translate(-50%, -135%); }

/* fiche et liste des lieux (fond blanc : couleurs soutenues) */
.im-stage { min-width: 0; display: flex; flex-direction: column; gap: .8rem; }
.im-card, .im-places { --c-fz: #0b6fa8; --c-border: #c4412c; --c-z2: #e2737c; --c-z1: #8aa9e4; --land: #eef1f8; --bg: #fff; --ink: #10203f; --ink-3: #50638a; --on: #fff; --c-port: #0a7fd0; --c-fish: #0f9d78; --c-air: #b97f00; --c-tp: #0b9c8f; --c-iz: #d9661a; --c-tour: #d23c8a; --c-unesco: #7457d9; --c-museum: #8a6d2f; --c-plan: #2a9447; --c-mw: #e08600; --c-rail: #33415f;
                       background: #fff; color: var(--text); border-radius: 12px; }
.im-card { position: relative; padding: 1.2rem 1.3rem; }
.im:not(.has-sel) .im-card { display: none; }
.im-tag { display: inline-flex; align-items: center; gap: .45rem; padding-right: 2.4rem; font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); } .im-tag .im-sym { width: 1.9rem; height: 1.9rem; }
.im-x { position: absolute; top: .6rem; right: .6rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--panel); color: var(--navy); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.im-card h3 { margin: .5rem 0 .1rem; font-size: 1.3rem; }
.im-fr { margin: 0 0 .8rem; font-size: .85rem; color: var(--muted); }
.im-card dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 .9rem; font-size: .9rem; }
.im-card dt { color: var(--muted); } .im-card dd { margin: 0; font-weight: 700; } .im-lt { font-weight: 400; color: var(--muted); }
.im-card .im-reach { padding: .6rem .7rem; border-radius: 8px; background: var(--panel); }
.im-card p { margin: 0 0 .8rem; font-size: .9rem; } .im-card a { color: var(--navy); font-weight: 700; }
.im-plan-lab { padding: .55rem .7rem; border-left: 3px solid var(--c-plan); background: #f1f9ec; border-radius: 0 6px 6px 0; font-size: .82rem; }
.im-plan-lab b, .im-plan-lab span { display: block; } .im-plan-lab span { color: var(--muted); font-size: .78rem; }
.im-card .im-src { margin: 0; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.im-pill { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 800; background: #e8f6ee; color: #11693a; }
.im-pill.w { background: #fff3df; color: #8a5200; } .im-pill.p { background: #eef1f8; color: #44527a; }
.im-places { padding: .9rem 1.1rem; overflow: auto; }
.im-places > h3 { margin: 0 0 .2rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.im-none { margin: .3rem 0; font-size: .88rem; color: var(--muted); }
.im-grp summary { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; font-size: .88rem; font-weight: 800; cursor: pointer; list-style: none; } .im-grp summary::-webkit-details-marker { display: none; }
.im-grp summary::after { content: "+"; margin-left: auto; color: var(--muted); } .im-grp[open] summary::after { content: "−"; } .im-grp summary em { font-style: normal; font-weight: 700; color: var(--muted); font-size: .78rem; }
.im-grp ul { list-style: none; margin: 0 0 .4rem; padding: 0; }
.im-grp li button { width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: .86rem; padding: .35rem .4rem; border-radius: 6px; color: var(--text); cursor: pointer; } .im-grp li button:hover { background: var(--panel); }
.im-foot { grid-column: 1 / -1; margin: 0; font-size: .74rem; color: var(--ink-3); }

@media (min-width: 1200px) { .im { grid-template-columns: 17.5rem minmax(0, 1.3fr) minmax(0, 1fr); } .im-map { height: 780px; } .im-stage { max-height: 780px; } }
@media (min-width: 760px) and (max-width: 1199px) { .im { grid-template-columns: 16.5rem minmax(0, 1fr); } .im-map { height: 680px; } .im-stage { grid-column: 1 / -1; } }
@media (max-width: 759px) {
    .im-tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -1.1rem; padding-inline: 1.1rem; gap: .4rem; } .im-tabs::-webkit-scrollbar { display: none; }
    .im-tab { flex: 0 0 auto; border-radius: 999px; padding: .55rem .95rem; min-height: 40px; } .im-tab span { display: none; } .im-tab b { font-size: .88rem; }
    .im { padding: 0; gap: 0; overflow: hidden; }
    .im-intro-m { display: block; order: 0; padding: .9rem .9rem .7rem; } .im-intro-m h2 { margin: 0 0 .2rem; font-size: 1.05rem; color: var(--ink); }
    .im-mapwrap { order: 1; } .im-map { height: 70vh; min-height: 440px; border-radius: 0; }
    .im-lay-btn { display: inline-flex; align-items: center; gap: .35rem; position: absolute; z-index: 5; top: .7rem; right: .7rem; min-height: 40px; padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--hair); background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 800; }
    .im-lay-btn b { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .72rem; }
    /* feuilles du bas — au-dessus de la barre d'onglets du site (z-index 90) */
    .im-rail, .im-stage .im-card { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; max-height: 72vh; overflow: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.35); transform: translateY(105%); transition: transform .28s ease; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
    .im:not(.has-sel) .im-stage .im-card { display: block; }
    .im-rail { background: var(--bg); padding: 1.5rem 1rem 1.2rem; } .im-rail h2, .im-rail .im-lead { display: none; }
    .im-rail::before, .im-stage .im-card::before { content: ""; position: absolute; top: .5rem; left: 50%; width: 2.6rem; height: .28rem; margin-left: -1.3rem; border-radius: 999px; background: #9aa6bd; opacity: .6; }
    .im.show-layers .im-rail, .im.has-sel .im-stage .im-card { transform: none; }
    .im-stage .im-card { padding-top: 1.5rem; }
    .im-rail .im-lay { min-height: 40px; } .im-rail-close { display: inline-flex; }
    .im-stage { order: 2; padding: .9rem; } .im-foot { order: 3; padding: 0 .9rem .9rem; }
    .im-go { right: .7rem; bottom: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) { .im-rail, .im-stage .im-card { transition: none; } }

/* ── Article : photos dans le texte, galerie, format magazine (nw-*) — maquette mockups/roadshow-news/ ── */
.nw-fig { margin: 0; }
.nw-fig figcaption { font-size: .8rem; color: var(--muted); margin-top: .55rem; line-height: 1.55; }
.nw-fig figcaption::before { content: '▲ '; color: var(--red); font-size: .7em; }
.nw-zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--panel); cursor: zoom-in; border-radius: 10px; overflow: hidden; position: relative; }
.nw-zoom img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.nw-zoom:hover img { transform: scale(1.03); }
.nw-photos { margin: 2rem 0 2.2rem; }
.nw-photos.is-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.news-body .nw-chapter { font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 2.4rem 0 1rem; line-height: 1.35; }
.nw-chapter b { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--red); margin-bottom: .2rem; }
.nw-quote { margin: 2.4rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 4px solid var(--red); font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 800; line-height: 1.55; color: var(--navy); letter-spacing: -.01em; }
.nw-gal { max-width: 64rem; margin: 3rem auto 0; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.news-body + .nw-gal, .source-note + .nw-gal { margin-left: 0; }
.nw-gal-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nw-gal-h h2 { font-size: 1.35rem; font-weight: 900; color: var(--text); margin: 0; }
.nw-gal-h p { font-size: .8rem; color: var(--muted); margin: 0; }
.nw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.nw-grid .nw-zoom { border-radius: 8px; }
.nw-grid .nw-zoom img { aspect-ratio: 1; }
.nw-grid .nw-zoom span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .6rem .5rem; color: #fff; font-size: .72rem; line-height: 1.4; text-align: left; background: linear-gradient(transparent, rgba(8, 14, 30, .8)); opacity: 0; transition: opacity .25s; }
.nw-grid .nw-zoom:hover span, .nw-grid .nw-zoom:focus-visible span { opacity: 1; }
.nw-dlg { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(.8rem, 3vh, 2rem) clamp(.6rem, 4vw, 5.5rem); border: 0; background: rgba(8, 14, 30, .97); color: #fff; overflow: hidden; }
.nw-dlg[open] { display: flex; flex-direction: column; justify-content: center; }
.nw-dlg > * { width: 100%; max-width: 1180px; margin-inline: auto; }
.nw-dlg::backdrop { background: rgba(8, 14, 30, .97); }
.nw-dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-size: .9rem; }
.nw-dlg-n { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .85; }
.nw-dlg-x { background: none; border: 0; color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; padding: .3rem 0; }
.nw-dlg-stage { position: relative; touch-action: pan-y; user-select: none; }
.nw-dlg-stage img { display: block; width: 100%; height: min(70vh, 720px); object-fit: contain; border-radius: 10px; }
.nw-dlg-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy-2); font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s; }
.nw-dlg-arrow:hover { transform: scale(1.08); }
.nw-dlg-arrow.is-prev { left: -76px; } .nw-dlg-arrow.is-next { right: -76px; }
.nw-dlg-cap { font-size: .92rem; margin: .7rem 0 0; text-align: center; min-height: 1.4em; }
.nw-dlg-strip { display: flex; gap: .4rem; margin-top: .9rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; justify-content: safe center; }
.nw-dlg-strip button { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .5; transition: opacity .2s; }
.nw-dlg-strip button:hover { opacity: .85; }
.nw-dlg-strip button.on { border-color: var(--red); opacity: 1; }
.nw-dlg-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1360px) { .nw-dlg-arrow.is-prev { left: .6rem; } .nw-dlg-arrow.is-next { right: .6rem; } }
@media (max-width: 760px) { .nw-dlg-arrow { width: 42px; height: 42px; font-size: 1.5rem; } .nw-dlg-stage img { height: min(60vh, 520px); } }
/* Format magazine */
.nw-mag { --col: 44rem; --wide: 64rem; padding-bottom: 4rem; }
.nw-mag-head { text-align: center; padding: 2.4rem 1rem 2rem; }
.nw-mag-head .breadcrumb { justify-content: center; margin-bottom: 1.6rem; }
.nw-kick { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 1rem; }
.nw-kick img { border-radius: 2px; }
.nw-title { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; line-height: 1.18; letter-spacing: -.03em; max-width: 20em; margin: 0 auto 1.2rem; color: var(--text); word-break: keep-all; }
.nw-deck { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.75; color: var(--text-2); max-width: 40rem; margin: 0 auto 1.4rem; word-break: keep-all; }
.nw-by { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .84rem; color: var(--muted); margin: 0; }
.nw-by b { color: var(--text); }
.nw-mag-hero { max-width: var(--container); margin: 0 auto; padding: 0 clamp(0px, 2vw, 24px); }
.nw-mag-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 760; object-fit: cover; border-radius: clamp(0px, 1vw, 12px); }
.nw-mag-hero figcaption { max-width: var(--wide); margin: .6rem auto 0; padding: 0 1rem; font-size: .8rem; color: var(--muted); }
.nw-mag-video { max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
.nw-mag-body { max-width: var(--col); margin: 0 auto; padding: 2.8rem 1rem 0; font-size: 1.08rem; line-height: 1.95; color: var(--text-2); word-break: keep-all; }
.nw-mag-body p { margin: 0 0 1.5rem; }
.nw-mag-body b, .nw-mag-body strong { color: var(--text); font-weight: 700; }
.nw-mag-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.nw-mag-body .nw-lede { font-size: 1.16em; line-height: 1.85; color: var(--text); font-weight: 500; }
.nw-mag-body .nw-chapter { display: flex; align-items: baseline; gap: .8rem; margin: 2.8rem 0 1.2rem; padding-top: 1.2rem; border-top: 3px solid var(--text); font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; color: var(--text); line-height: 1.3; }
.nw-mag-body .nw-chapter b { display: inline; margin: 0; white-space: nowrap; }
.nw-mag-body .nw-photos.is-row, .nw-facts { width: min(var(--wide), calc(100vw - 2rem)); margin-left: 50%; transform: translateX(-50%); }
.nw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-block: 2.4rem 2.8rem; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.nw-facts div { text-align: center; padding: 0 .6rem; border-left: 1px solid var(--line); }
.nw-facts div:first-child { border-left: 0; }
.nw-facts dd { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.nw-facts dt { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.nw-mag .nw-gal { padding-inline: 1rem; }
.nw-mag-foot { max-width: var(--wide); margin: 2.6rem auto 0; padding: 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.4rem; }
.nw-box { background: var(--panel); border-radius: 12px; padding: 1.2rem 1.4rem; font-size: .88rem; }
.nw-box h2 { font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin: 0 0 .6rem; }
.nw-box a { display: block; color: var(--navy); font-weight: 600; padding: .25rem 0; }
@media (max-width: 760px) {
    .nw-grid { grid-template-columns: repeat(2, 1fr); }
    .nw-grid .nw-zoom span { opacity: 1; }
    .nw-facts { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
    .nw-facts div:nth-child(3) { border-left: 0; }
    .nw-mag-hero img { aspect-ratio: 4 / 3; }
    .nw-mag-body .nw-chapter { flex-direction: column; gap: .2rem; }
}
/* Roadshow : visite faite, lien vers l'article de bilan */
.ini-done { display: inline-flex; align-items: center; gap: .35rem; background: #e8f5ee; color: #11683e; font-size: .74rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; margin-left: .5rem; vertical-align: middle; white-space: nowrap; }
.ini-visit-photos { display: flex; gap: .35rem; margin-top: .6rem; }
.ini-visit-photos img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.ini-visit-link { display: inline-block; margin-top: .45rem; font-size: .86rem; font-weight: 700; color: var(--red); }
