/*
 * Page mère Nos secteurs (maquette validée le 06/10, https://claude.ai/artifact/KPAWf8WJRbYeFQqq3xuqzq) :
 * haut de page « secteurs » (photos révélées par un trait laser, règle graduée), planches empilées au défilement,
 * chantiers placés à l'échelle logarithmique, onglets par métier. Charte seule : les teintes de secteur restent aux
 * pages filles. Kit propre (préfixe cp-ns), chargé par inc/releve.php seulement si la page l'utilise.
 */

/* ---------- Haut de page « secteurs » ---------- */
.cp-sx-hero.is-ns { min-height: min(94vh, 920px); display: grid; background: #04041A; }
.cp-sx-hero.is-ns::before,
.cp-sx-hero.is-ns.is-charte::before { display: block; right: auto; left: 0; top: 0; z-index: -1; width: 100%; height: 100%; aspect-ratio: auto; background: linear-gradient(90deg, #04041A 0%, #04041A 42%, rgba(4, 4, 26, .85) 52%, rgba(4, 4, 26, 0) 72%), linear-gradient(0deg, rgba(4, 4, 26, .92) 0%, rgba(4, 4, 26, .6) 18%, rgba(4, 4, 26, 0) 40%); }
.cp-ns-scene { position: absolute; top: 0; right: 0; bottom: 0; z-index: -2; width: 66%; overflow: hidden; }
.cp-ns-f { position: absolute; inset: 0; margin: 0; transform: scale(1.06); transition: transform 7s linear; }
.cp-ns-f.is-on { transform: scale(1); }
.cp-ns-f img { width: 100%; height: 100%; object-fit: cover; }
.cp-ns-f.is-new { clip-path: inset(0 0 100% 0); animation: cp-ns-balaye 1.5s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes cp-ns-balaye { to { clip-path: inset(0 0 0 0); } }
.cp-ns-laser { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 2px; background: #FF9900; box-shadow: 0 0 18px 4px rgba(255, 153, 0, .55), 0 0 2px 1px #FFD9A0; opacity: 0; pointer-events: none; }
.cp-ns-laser.is-run { animation: cp-ns-laser 1.5s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes cp-ns-laser { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.cp-sx-hero.is-ns .cp-sx-hero__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: stretch; padding-bottom: 0; }
.cp-sx-hero.is-ns .cp-sx-hero__txt { align-self: center; max-width: 620px; padding-bottom: 48px; }
.cp-sx-hero.is-ns .cp-sx-hero__title { font-size: clamp(38px, 4vw, 60px); line-height: 1.03; letter-spacing: -.025em; }
.cp-sx-hero.is-ns .cp-sx-hero__title b { display: block; margin-top: 8px; color: #fff; font-size: .62em; font-weight: 300; letter-spacing: -.01em; }
.cp-sx-hero.is-ns .cp-sx-hero__lead { color: #D3D5EA; }
.cp-ns-leg { position: absolute; right: clamp(16px, 4vw, 56px); top: calc(var(--cp-sx-head, 120px) + 24px); z-index: 1; max-width: 380px; margin: 0; padding: 8px 14px; border-radius: 8px; background: rgba(4, 4, 26, .72); color: #E4E5F2; font-size: 13px; line-height: 1.5; text-align: right; }

/* Règle graduée : un segment par secteur */
.cp-ns-regle { position: relative; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); margin-bottom: 34px; border-top: 1px solid rgba(255, 255, 255, .35); }
.cp-ns-regle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 1px, transparent 1px 12px); pointer-events: none; }
.cp-ns-regle a { position: relative; display: block; padding: 22px 16px 6px 0; color: rgba(255, 255, 255, .62); text-decoration: none; transition: color .3s; }
.cp-ns-regle a::before { content: ""; position: absolute; left: 0; top: -1px; width: 1px; height: 18px; background: rgba(255, 255, 255, .7); }
.cp-ns-regle a::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: #FF9900; transform: scaleX(var(--p, 0)); transform-origin: left; }
.cp-ns-regle strong { display: block; color: inherit; font-size: 16px; font-weight: 600; line-height: 1.25; }
.cp-ns-regle small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; }
.cp-ns-regle a.is-on,
.cp-ns-regle a:hover,
.cp-ns-regle a:focus-visible { color: #fff; outline: none; }
.cp-ns-regle a:focus-visible strong { text-decoration: underline; text-decoration-color: #FF9900; text-underline-offset: 4px; }
@media (max-width: 1000px) {
	.cp-sx-hero.is-ns { min-height: 0; }
	.cp-ns-scene { width: 100%; height: calc(var(--cp-sx-head, 120px) + 280px); bottom: auto; }
	.cp-sx-hero.is-ns::before,
	.cp-sx-hero.is-ns.is-charte::before { background: linear-gradient(0deg, #04041A 0%, #04041A calc(100% - var(--cp-sx-head, 120px) - 300px), rgba(4, 4, 26, 0) calc(100% - var(--cp-sx-head, 120px) - 120px)); }
	.cp-sx-hero.is-ns .cp-sx-hero__in { padding-top: calc(var(--cp-sx-head, 120px) + 300px); }
	.cp-ns-leg { display: none; }
	.cp-ns-regle { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; }
	.cp-ns-regle small { display: none; }
}

/* ---------- Titres du kit ---------- */
[class*="cp-rl--ns-"] .cp-rl__cote { display: none; }
[class*="cp-rl--ns-"] .cp-rl__h { margin-bottom: 18px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.015em; }
[class*="cp-rl--ns-"] .cp-rl__lead { max-width: 900px; }

/* ---------- Planches empilées ---------- */
.cp-ns-pl { display: grid; gap: 28px; margin-top: 56px; }
.cp-ns-planche { position: sticky; top: calc(var(--cp-bar-h, 76px) + 20px + var(--i) * 16px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 460px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #E3E5EF, 0 -18px 40px -30px rgba(0, 0, 51, .35); }
.cp-rl .cp-ns-planche > img { width: 100%; height: 100%; object-fit: cover; }
.cp-ns-planche__t { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.4vw, 48px); }
.cp-rl .cp-ns-planche .cp-rl__h3 { margin: 0; font-size: clamp(26px, 2.2vw, 32px); font-weight: 700; }
.cp-rl .cp-ns-planche p { margin-top: 14px; font-size: 17px; line-height: 1.65; }
.cp-rl .cp-ns-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cp-ns-types li { padding: 5px 12px; border-radius: 8px; background: #EDF2F9; color: #000033; font-size: 14px; font-weight: 600; line-height: 1.5; }
.cp-ns-chif { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; margin-top: 26px; padding-top: 22px; border-top: 1px solid #E3E5EF; }
.cp-ns-chif b { display: block; color: #000033; font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-ns-chif span { display: block; margin-top: 6px; color: #5D6180; font-size: 14px; line-height: 1.4; }
.cp-ns-go { margin-top: auto; padding-top: 26px; color: #000033; font-weight: 700; text-decoration: underline; text-decoration-color: #FF9900; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cp-ns-go:hover { color: #B06000; }
@media (max-width: 1000px) {
	.cp-ns-planche { position: relative; top: auto; grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.cp-rl .cp-ns-planche > img { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.cp-ns-chif { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Chantiers à l'échelle ---------- */
.cp-ns-chart { --lab: 230px; position: relative; margin-top: 60px; }
.cp-ns-axe { position: relative; height: 26px; margin-left: var(--lab); color: rgba(255, 255, 255, .55); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.cp-ns-axe span { position: absolute; top: 0; transform: translateX(-50%); }
.cp-ns-row { position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; min-height: 74px; border-top: 1px solid rgba(255, 255, 255, .1); }
.cp-ns-row > b { padding-right: 18px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; }
.cp-ns-track { position: relative; height: 74px; }
.cp-ns-track > i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .12); }
.cp-ns-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #000033; box-shadow: inset 0 0 0 2px #FF9900; cursor: default; transition: transform .2s, background .2s; }
.cp-ns-dot:hover,
.cp-ns-dot:focus-visible,
.cp-ns-dot.is-max { background: #FF9900; }
.cp-ns-dot:hover,
.cp-ns-dot:focus-visible { z-index: 3; outline: none; transform: scale(1.35); }
.cp-ns-dot em { position: absolute; bottom: 20px; left: 50%; padding: 5px 10px; border-radius: 8px; background: #fff; color: #000033; font-size: 13px; font-style: normal; font-weight: 600; line-height: 1.3; white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .2s; }
.cp-ns-dot em i { color: #B06000; font-style: normal; }
.cp-ns-dot:hover em,
.cp-ns-dot:focus-visible em,
.cp-ns-dot.is-max em { opacity: 1; }
.cp-ns-dot.is-max em { bottom: 18px; background: transparent; color: #fff; }
.cp-ns-dot.is-max em i { color: #FF9900; }
.cp-ns-dot:hover em, .cp-ns-dot:focus-visible em { background: #fff; color: #000033; }
.cp-ns-dot:hover em i, .cp-ns-dot:focus-visible em i { color: #B06000; }
.cp-ns-dot.is-g em { left: auto; right: -6px; transform: none; }
@media (max-width: 1000px) {
	.cp-ns-row { grid-template-columns: minmax(0, 1fr); }
	.cp-ns-row > b { padding-top: 14px; }
	.cp-ns-axe { margin-left: 0; }
	.cp-ns-dot em { font-size: 12px; }
}

/* ---------- Onglets par métier ---------- */
.cp-ns-mt { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 50px; }
.cp-ns-mt__tabs { display: grid; align-content: start; gap: 6px; }
.cp-ns-mt__tabs button { all: unset; position: relative; padding: 14px 18px 14px 22px; border-radius: 8px; color: #5D6180; font-size: 17px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background .25s, color .25s; }
.cp-ns-mt__tabs button::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: #FF9900; transform: scaleY(0); transition: transform .3s; }
.cp-ns-mt__tabs button:hover { color: #000033; }
.cp-ns-mt__tabs button[aria-selected="true"] { background: #EDF2F9; color: #000033; }
.cp-ns-mt__tabs button[aria-selected="true"]::before { transform: scaleY(1); }
.cp-ns-mt__tabs button:focus-visible { outline: 2px solid #FF9900; }
.cp-ns-mt__ps { display: grid; gap: 48px; }
.cp-ns-mt.is-live .cp-ns-mt__p:not(.is-on) { display: none; }
.cp-ns-mt__p { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.cp-rl .cp-ns-mt__p > img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; }
.cp-rl .cp-ns-mt__p .cp-rl__h3 { margin: 0; font-size: clamp(24px, 2vw, 30px); font-weight: 700; }
.cp-rl .cp-ns-mt__p p { margin-top: 12px; font-size: 17px; line-height: 1.65; }
.cp-rl .cp-ns-mt__p ul { margin-top: 18px; }
.cp-ns-mt__p li { border-top: 1px solid #E3E5EF; }
.cp-ns-mt__p li > a,
.cp-ns-mt__p li > span { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: #000033; font-size: 16px; font-weight: 600; text-decoration: none; }
.cp-ns-mt__p li > a::after { content: "\2192"; color: #B06000; transition: transform .25s; }
.cp-ns-mt__p li > a:hover::after { transform: translateX(4px); }
@media (max-width: 1000px) {
	.cp-ns-mt,
	.cp-ns-mt__p { grid-template-columns: minmax(0, 1fr); }
	.cp-ns-mt__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.cp-ns-mt__tabs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Carte de France des réalisations (remplace le graphique des stations, validée le 06/10) ---------- */
.cp-ns-ca__g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 48px; }
.cp-ns-ca__f { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cp-ns-ca__f[hidden] { display: none; }
.cp-ns-ca__f button { all: unset; padding: 8px 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: #B9BDD6; font-size: 15px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.cp-ns-ca__f button:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.cp-ns-ca__f button[aria-pressed="true"] { background: #FF9900; color: #000033; box-shadow: none; }
.cp-ns-ca__f button:focus-visible { outline: 2px solid #FF9900; outline-offset: 2px; }
.cp-ns-ca__n { display: flex; gap: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.cp-ns-ca__n b { display: block; color: #fff; font-size: clamp(34px, 3vw, 46px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-rl .cp-ns-ca__n span { display: block; margin-top: 6px; color: #B9BDD6; font-size: 14px; line-height: 1.4; }
.cp-ns-ca__l { margin-top: 28px; padding: 22px 24px; border-radius: 8px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cp-rl .cp-ns-ca__l .cp-rl__h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.25; }
.cp-ns-ca__l .cp-rl__h3 small { display: block; margin-top: 2px; color: #B9BDD6; font-size: 14px; font-weight: 400; }
.cp-rl .cp-ns-ca__l ul { max-height: 300px; margin-top: 14px; padding-right: 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.cp-ns-ca__l li { border-top: 1px solid rgba(255, 255, 255, .12); }
.cp-ns-ca__l a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.cp-ns-ca__l a span { flex: none; max-width: 45%; color: #B9BDD6; font-weight: 400; text-align: right; }
.cp-ns-ca__l a:hover { color: #FF9900; }
.cp-ns-ca__m { position: relative; margin: 0; }
.cp-ns-ca__m svg { display: block; width: 100%; height: auto; overflow: visible; }
.cp-ns-ca__m path { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .22); stroke-width: .6; stroke-linejoin: round; }
.cp-ns-ca__m path.is-on { cursor: pointer; }
.cp-ns-ca__m path.is-sel { stroke: #fff; stroke-width: 1.4; }
.cp-ns-ca__m path:focus { outline: none; }
.cp-ns-ca__m path.is-on:focus-visible { stroke: #fff; stroke-width: 1.6; }
.cp-ns-ca__b { pointer-events: none; }
.cp-ns-ca__b circle { fill: #fff; }
.cp-ns-ca__b text { fill: #000033; font: 700 11px "Titillium Web", sans-serif; text-anchor: middle; dominant-baseline: central; }
.cp-ns-ca__b .is-sel circle { fill: #FF9900; }
.cp-ns-ca__m figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #B9BDD6; font-size: 13px; line-height: 1.4; }
.cp-ns-ca__m figcaption i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 153, 0, .28), #FF9900); }
@media (max-width: 1000px) {
	.cp-ns-ca__g { grid-template-columns: minmax(0, 1fr); }
	.cp-ns-ca__m { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
	.cp-ns-f,
	.cp-ns-f.is-new { animation: none; clip-path: none; transition: none; transform: none; }
	.cp-ns-laser { display: none; }
}
