/*
 * Disposition « atlas » du bloc Section propre (maquette validée le 06/10) : à gauche, titre, texte et carte des
 * réalisations, collés au défilement ; la carte zoome sur la zone qui compte le plus de réalisations, les autres
 * restent accessibles par une pastille. À droite, lignes numérotées dont la planche se trace au défilement
 * (atlas.js règle --t). Sans script : carte entière sans épingles, planches complètes.
 */

.cp-sx-atl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cp-sx-atl__l { position: sticky; top: calc(var(--cp-bar-h, 76px) + 24px); display: flex; flex-direction: column; max-height: calc(100vh - var(--cp-bar-h, 76px) - 48px); }
.cp-sx-atl__head .cp-sx-intro { margin-top: 22px; color: var(--cp-sx-ink); }
.cp-sx-atl__map { position: relative; flex: 1 1 auto; min-height: 280px; margin-top: 32px; }
.cp-sx-atl__fig { position: relative; width: 100%; max-width: 100%; aspect-ratio: 613 / 585; overflow: hidden; border-radius: 8px; background: linear-gradient(180deg, #F7F8FC, #fff); }
.cp-sx-atl__fr { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-sx-atl__fr path { fill: #ECEEF5; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .5s; }
.cp-sx-atl__fr path.is-on { fill: #D9DFEE; }
.cp-sx-atl__map.is-zoom .cp-sx-atl__fr path.is-on { fill: #CDD5EA; }
.cp-sx-atl__cap { position: absolute; z-index: 2; left: 14px; top: 12px; max-width: 58%; color: var(--cp-sx-mute); font-size: 14px; line-height: 1.35; pointer-events: none; }
.cp-sx-atl__cap b { display: block; color: var(--cp-sx-navy); font-size: 30px; line-height: 1.1; font-weight: 700; }
.cp-sx-atl__pins { position: absolute; inset: 0; }
.cp-sx-atl__pin { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .35s; }
.cp-sx-atl__pin.is-v { opacity: 1; }
.cp-sx-atl__pin button { all: unset; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--cp-sx-orange); box-shadow: 0 0 0 4px rgba(255, 153, 0, .22), 0 6px 14px -4px rgba(0, 0, 51, .45); cursor: pointer; opacity: 0; transform: translateY(-26px) scale(.4); transition: transform .55s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.cp-sx-atl__pin.is-v button { opacity: 1; transform: none; }
.cp-sx-atl__pin button:focus-visible { outline: 2px solid var(--cp-sx-navy); outline-offset: 3px; }
.cp-sx-atl__pin button::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--cp-sx-orange); border-radius: 50%; opacity: 0; }
.cp-sx-atl__pin.is-v button::after { animation: cp-atl-ring 2.6s var(--dl, 0s) infinite; }
@keyframes cp-atl-ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.6); } }
.cp-sx-atl__pin i { position: absolute; top: -9px; left: 7px; padding: 0 5px; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 51, .18); color: var(--cp-sx-navy); font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; pointer-events: none; }
.cp-sx-atl__pin span { position: absolute; color: var(--cp-sx-navy); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s .15s; }
.cp-sx-atl__map.is-zoom .cp-sx-atl__pin.is-v span { opacity: 1; }
.cp-sx-atl__pin[data-l="r"] span { left: 16px; top: -8px; }
.cp-sx-atl__pin[data-l="l"] span { right: 16px; top: -8px; }
.cp-sx-atl__pin[data-l="b"] span { left: 0; top: 14px; transform: translateX(-50%); }
.cp-sx-atl__pin[data-l="t"] span { left: 0; top: -32px; transform: translateX(-30%); }
.cp-sx-atl__clu { position: absolute; width: 0; height: 0; transition: opacity .4s; pointer-events: none; }
.cp-sx-atl__clu b { position: absolute; left: -22px; top: -22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cp-sx-navy); box-shadow: 0 0 0 6px rgba(0, 0, 51, .12), 0 10px 24px -8px rgba(0, 0, 51, .6); color: #fff; font-size: 17px; transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.cp-sx-atl__map.is-in .cp-sx-atl__clu b { transform: scale(1); }
.cp-sx-atl__inset { position: absolute; z-index: 2; right: 10px; top: 10px; width: 96px; aspect-ratio: 613 / 585; padding: 6px; border-radius: 8px; background: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 51, .35), 0 0 0 1px var(--cp-sx-line); opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; }
.cp-sx-atl__map.is-zoom .cp-sx-atl__inset { opacity: 1; transform: none; }
.cp-sx-atl__inset svg { display: block; width: 100%; height: 100%; }
.cp-sx-atl__inset use { fill: #C9D0E4; stroke: none; }
.cp-sx-atl__inset rect { fill: rgba(255, 153, 0, .25); stroke: var(--cp-sx-orange); stroke-width: 6; }
.cp-sx-atl__far { position: absolute; z-index: 2; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); }
.cp-sx-atl__far button { all: unset; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 8px; background: var(--cp-sx-navy); color: #fff; font-size: 13px; line-height: 1.3; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.cp-sx-atl__far svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--cp-sx-orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-sx-atl__map.is-zoom .cp-sx-atl__far button { opacity: 1; pointer-events: auto; transform: none; }
.cp-sx-atl__far button:focus-visible { outline: 2px solid var(--cp-sx-orange); outline-offset: 2px; }
.cp-sx-atl__card { position: absolute; z-index: 5; width: 260px; max-width: calc(100% - 20px); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 24px 60px -18px rgba(0, 0, 51, .45), 0 0 0 1px var(--cp-sx-line); opacity: 0; pointer-events: none; transform: translateY(6px) scale(.97); transform-origin: top left; transition: opacity .25s, transform .25s; }
.cp-sx-atl__card.is-on { opacity: 1; pointer-events: auto; transform: none; }
.cp-sx-atl__card > img { width: 100%; aspect-ratio: 380 / 243; object-fit: cover; object-position: 78% 50%; }
.cp-sx-atl__card li + li { border-top: 1px solid var(--cp-sx-line); }
.cp-sx-atl__card a { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 14px; color: var(--cp-sx-ink); text-decoration: none; }
.cp-sx-atl__card .is-multi a { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; }
.cp-sx-atl__card .is-multi img { width: 72px; aspect-ratio: 4 / 3; border-radius: 6px; object-fit: cover; object-position: 78% 50%; }
.cp-sx-atl__card b { display: block; color: var(--cp-sx-navy); font-size: 15px; line-height: 1.25; }
.cp-sx-atl__card small { display: block; margin-top: 2px; color: var(--cp-sx-mute); font-size: 13px; line-height: 1.35; }
.cp-sx-atl__card a:hover b { text-decoration: underline; text-decoration-color: var(--cp-sx-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cp-sx-atl__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lignes et planches */
.cp-sx-atl__rows { margin: 0 !important; border-top: 1px solid var(--cp-sx-line); }
.cp-sx-atl__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 28px; padding: 44px 0 52px; border-bottom: 1px solid var(--cp-sx-line); }
.cp-sx-atl__n { position: relative; height: 60px; color: transparent; font-size: 60px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; -webkit-text-stroke: 1.5px #D9DFEE; }
.cp-sx-atl__n::after { content: attr(data-n); position: absolute; inset: 0; color: var(--cp-sx-orange); -webkit-text-stroke: 0; clip-path: inset(calc((1 - var(--t, 1)) * 100%) 0 0 0); }
.cp-sx-atl__row h3 { margin-top: 4px; color: var(--cp-sx-navy); font-size: 22px; line-height: 1.25; font-weight: 600; }
.cp-sx-atl__row p { margin-top: 10px; color: var(--cp-sx-ink); font-size: 17px; line-height: 1.65; }
.cp-sx-atl__board { grid-column: 1 / -1; margin-top: 28px !important; padding: 22px 24px 18px; border-radius: 8px; background: #F5F6FA; }
.cp-sx-focus.is-ciel .cp-sx-atl__board { background: #fff; }
.cp-sx-atl__board svg { display: block; width: 100%; height: auto; overflow: visible; }
.cp-sx-atl__board figcaption { margin-top: 10px; color: var(--cp-sx-mute); font-size: 13px; letter-spacing: .02em; }
.cp-sx-atl .ln { fill: none; stroke: var(--cp-sx-navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 1)); vector-effect: non-scaling-stroke; }
.cp-sx-atl .ln.o { stroke: var(--cp-sx-orange); stroke-width: 2; }
.cp-sx-atl .ln.th { stroke: #8A90B4; stroke-width: 1; }
.cp-sx-atl .fa { opacity: var(--t, 1); }
.cp-sx-atl .tx { opacity: var(--t, 1); fill: var(--cp-sx-navy); font: 600 17px "Titillium Web", sans-serif; }
.cp-sx-atl .tx.o { fill: #B86E00; }
.cp-sx-atl__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }
.cp-sx-atl__chips li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--cp-sx-line); color: var(--cp-sx-mute); font-size: 14px; font-weight: 600; transition: color .3s, box-shadow .3s; }
.cp-sx-atl__chips svg { width: 18px; height: 18px; }
.cp-sx-atl__chips circle { fill: #E3E6F0; transition: fill .3s; }
.cp-sx-atl__chips path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset .4s .15s; }
.cp-sx-atl__chips li.is-ok,
.cp-sx-atl:not(.is-live) .cp-sx-atl__chips li { color: var(--cp-sx-navy); box-shadow: 0 0 0 1px rgba(255, 153, 0, .6); }
.cp-sx-atl__chips li.is-ok circle,
.cp-sx-atl:not(.is-live) .cp-sx-atl__chips circle { fill: var(--cp-sx-orange); }
.cp-sx-atl__chips li.is-ok path,
.cp-sx-atl:not(.is-live) .cp-sx-atl__chips path { stroke-dashoffset: 0; }
.cp-sx-atl__node circle { fill: #fff; stroke: #D9DFEE; stroke-width: 2; transition: fill .3s, stroke .3s; }
.cp-sx-atl__node text { fill: var(--cp-sx-mute); font: 600 17px "Titillium Web", sans-serif; transition: fill .3s; }
.cp-sx-atl__node.is-on circle,
.cp-sx-atl:not(.is-live) .cp-sx-atl__node circle { fill: var(--cp-sx-orange); stroke: var(--cp-sx-orange); }
.cp-sx-atl__node.is-on text,
.cp-sx-atl:not(.is-live) .cp-sx-atl__node text { fill: var(--cp-sx-navy); }
.cp-sx-atl__stamp { opacity: var(--t, 1); transform: rotate(calc(-14deg + var(--t, 1) * 8deg)) scale(calc(1.6 - var(--t, 1) * .6)); transform-box: fill-box; transform-origin: center; }
.cp-sx-atl__pts circle { fill: var(--cp-sx-navy); }
.cp-sx-atl__scan { opacity: var(--t, 1); }
.cp-sx-atl__ray { opacity: calc(.25 + var(--t, 1) * .75); transform: rotate(calc(-30deg + var(--t, 1) * 34deg)); transform-origin: 84px 142px; }
.cp-sx-atl__stamp text { fill: #B86E00; font: 700 11px "Titillium Web", sans-serif; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1000px) {
	.cp-sx-atl { grid-template-columns: minmax(0, 1fr); }
	.cp-sx-atl__l { position: static; max-height: none; }
	.cp-sx-atl__map { min-height: 0; }
}
@media (max-width: 600px) {
	.cp-sx-atl__row { grid-template-columns: minmax(0, 1fr); padding: 36px 0 40px; }
	.cp-sx-atl__n { height: 46px; margin-bottom: 10px; font-size: 46px; }
	.cp-sx-atl__board { padding: 16px; }
	.cp-sx-atl__card { width: 220px; }
	.cp-sx-atl__pin span { font-size: 11px; }
	.cp-sx-atl__inset { width: 70px; }
	.cp-sx-atl__cap b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.cp-sx-atl *,
	.cp-sx-atl *::after { transition: none !important; animation: none !important; }
}
