/*
 * Page mère Scan 3D de bâtiment (maquette validée le 06/10, https://claude.ai/artifact/3Vy6DKGQQtFnMKGLHcXRXT) :
 * haut de page « nuage de points » balayé par le laser, station 360° des prestations, livrables sur une ligne de
 * cote, carnet des critères de prix, pastilles de villes. Kit propre à la page mère (préfixe cp-ms), chargé par
 * inc/releve.php seulement si la page l'utilise. Sans script : nuage absent (fond nuit), station figée.
 */

/* ---------- Haut de page : nuage de points ---------- */
.cp-sx-hero.is-nuage { min-height: min(92vh, 900px); display: grid; align-items: center; background: radial-gradient(120% 90% at 72% 40%, #12124F 0%, #06061F 55%, #020210 100%); }
.cp-sx-hero.is-nuage::before,
.cp-sx-hero.is-nuage.is-charte::before { display: block; right: auto; top: 0; left: 0; z-index: -1; width: 100%; height: 100%; aspect-ratio: auto; background: linear-gradient(90deg, rgba(2, 2, 16, .92) 0%, rgba(2, 2, 16, .55) 38%, rgba(2, 2, 16, 0) 62%), linear-gradient(0deg, rgba(2, 2, 16, .8) 0%, rgba(2, 2, 16, 0) 30%); }
.cp-ms-cloud { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.cp-sx-hero.is-nuage .cp-sx-hero__in { grid-template-columns: minmax(0, 1fr); }
.cp-sx-hero.is-nuage .cp-sx-hero__txt { max-width: 760px; }
.cp-sx-hero.is-nuage .cp-sx-hero__title { font-size: clamp(38px, 4vw, 62px); line-height: 1.04; letter-spacing: -.025em; }
.cp-sx-hero.is-nuage .cp-sx-hero__title b { display: block; color: #fff; font-weight: 300; }
.cp-sx-hero.is-nuage .cp-sx-hero__lead { max-width: 640px; color: #D3D5EA; }
.cp-ms-hud { position: absolute; z-index: 1; color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 600; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; pointer-events: none; }
.cp-ms-hud--tr { right: clamp(16px, 4vw, 56px); top: calc(var(--cp-sx-head, 120px) + 28px); text-align: right; }
.cp-ms-hud--br { right: clamp(16px, 4vw, 56px); bottom: 32px; text-align: right; }
.cp-ms-hud b { color: var(--cp-sx-orange, #FF9900); font-weight: 700; }
.cp-ms-hud__bar { display: block; width: 180px; height: 2px; margin: 8px 0 4px auto; background: rgba(255, 255, 255, .15); }
.cp-ms-hud__bar i { display: block; width: var(--p, 0%); height: 100%; background: var(--cp-sx-orange, #FF9900); }
.cp-ms-hud__rec::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--cp-sx-orange, #FF9900); animation: cp-ms-rec 1.2s infinite; }
@keyframes cp-ms-rec { 50% { opacity: .2; } }
/* Écran d'ordinateur : le haut de page tient dans la fenêtre, y compris à 1474 × 686 (écran à 125 %, 18/10). */
@media (min-width: 1001px) {
	.cp-sx-hero.is-nuage { min-height: min(100svh, 1000px); }
	.cp-sx-hero.is-nuage .cp-sx-hero__in { padding-block: calc(var(--cp-sx-head, 120px) + clamp(12px, 4svh, 88px)) clamp(24px, 5svh, 120px); }
	.cp-sx-hero.is-nuage .cp-sx-hero__title { margin-top: clamp(10px, 2svh, 24px); font-size: min(clamp(38px, 4vw, 62px), 7svh); }
	.cp-sx-hero.is-nuage .cp-sx-hero__lead { margin-top: clamp(12px, 2.4svh, 24px); font-size: min(clamp(17px, 1.3vw, 19px), 2.5svh); line-height: 1.55; }
	.cp-sx-hero.is-nuage .cp-sx-hero__cta { margin-top: clamp(16px, 3.6svh, 36px); }
}
@media (max-width: 1000px) {
	.cp-sx-hero.is-nuage { min-height: 0; }
	.cp-sx-hero.is-nuage .cp-sx-hero__in { padding-top: calc(var(--cp-sx-head, 120px) + 300px); }
	.cp-sx-hero.is-nuage::before,
	.cp-sx-hero.is-nuage.is-charte::before { background: linear-gradient(0deg, rgba(2, 2, 16, .95) 0%, rgba(2, 2, 16, .9) 62%, rgba(2, 2, 16, 0) 74%); }
	.cp-ms-hud--tr { display: none; }
	.cp-ms-hud--br { display: none; }
}

/* ---------- Titres des sections du kit ---------- */
[class*="cp-rl--ms-"] .cp-rl__cote { display: none; }
[class*="cp-rl--ms-"] .cp-rl__h { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.015em; }
.cp-rl--ms-carnet .cp-rl__h,
.cp-rl--ms-villes .cp-rl__h { font-size: clamp(28px, 2.7vw, 40px); }
.cp-rl--ms-villes .cp-rl__h { text-wrap: wrap; }
[class*="cp-rl--ms-"] .cp-rl__lead { margin-top: 18px; }

/* ---------- Station 360° ---------- */
.cp-rl--ms-station { overflow: hidden; }
.cp-ms-ring { position: relative; width: min(100%, 1060px); aspect-ratio: 1.45; margin: 120px auto 110px; }
.cp-ms-ring__c { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.cp-ms-ring__c::before,
.cp-ms-ring__c::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(0, 0, 51, .2); }
.cp-ms-ring__c::after { inset: -55%; border-style: solid; border-color: rgba(0, 0, 51, .07); }
.cp-ms-ring__beam { position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) rotate(var(--a, 0deg)); background: conic-gradient(from -14deg, rgba(255, 153, 0, .35) 0deg, rgba(255, 153, 0, 0) 28deg, transparent 360deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.cp-ms-ring__core { position: absolute; inset: 22%; display: grid; place-items: center; border-radius: 50%; background: #000033; box-shadow: 0 0 0 1px rgba(255, 153, 0, .4), 0 0 60px rgba(255, 153, 0, .25); text-align: center; }
.cp-ms-ring__core svg { width: 46%; fill: none; stroke: var(--o, #FF9900); stroke-width: 1.4; }
.cp-ms-ring__core small { display: block; margin-top: 4px; color: #C9CBE3; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cp-ms-stn { position: absolute; z-index: 1; width: 31%; transform: translate(-50%, -50%); }
.cp-ms-stn--0 { left: 17%; top: 13%; }
.cp-ms-stn--1 { left: 50%; top: 6%; }
.cp-ms-stn--2 { left: 83%; top: 13%; }
.cp-ms-stn--3 { left: 83%; top: 87%; }
.cp-ms-stn--4 { left: 50%; top: 94%; }
.cp-ms-stn--5 { left: 17%; top: 87%; }
.cp-ms-stn__in { display: block; padding: 18px 20px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #E3E5EF, 0 20px 40px -28px rgba(0, 0, 51, .35); color: inherit; text-decoration: none; transition: background .35s, box-shadow .35s, transform .35s; }
a.cp-ms-stn__in:hover,
.cp-ms-stn.is-on .cp-ms-stn__in { background: #FFF8EC; box-shadow: inset 0 0 0 1.5px var(--o, #FF9900), 0 26px 50px -26px rgba(0, 0, 51, .4); transform: translateY(-3px); }
a.cp-ms-stn__in:focus-visible { outline: 2px solid var(--o, #FF9900); outline-offset: 3px; }
.cp-ms-stn i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 8px; background: #000033; }
.cp-rl .cp-ms-stn i svg { width: 28px; height: 28px; fill: none; stroke: #FF9900; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.cp-rl .cp-ms-stn i svg * { fill: none; stroke: #FF9900; }
.cp-rl .cp-ms-stn .cp-rl__h3 { margin: 0; color: #000033; font-size: 20px; line-height: 1.2; }
.cp-rl .cp-ms-stn p { margin-top: 6px; color: #5D6180; font-size: 15px; line-height: 1.5; }
.cp-ms-stn em { display: inline-block; margin-top: 10px; color: #B06000; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cp-ms-ring.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; aspect-ratio: auto; margin: 56px 0 0; }
.cp-ms-ring.is-grid .cp-ms-ring__c { display: none; }
.cp-ms-ring.is-grid .cp-ms-stn { position: static; width: auto; transform: none; }
@media (max-width: 1000px) {
	.cp-ms-ring { display: grid; gap: 12px; aspect-ratio: auto; margin: 48px 0 0; }
	.cp-ms-ring__c { position: relative; left: auto; top: auto; width: 180px; margin: 0 auto 24px; transform: none; }
	.cp-ms-stn { position: static; width: auto; transform: none; }
	.cp-ms-ring.is-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Livrables sur une ligne de cote ---------- */
.cp-ms-cote { position: relative; margin-top: 64px; }
.cp-ms-cote__l { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: #000033; }
.cp-ms-cote__l::before,
.cp-ms-cote__l::after { content: ""; position: absolute; top: -9px; width: 2px; height: 20px; background: #000033; }
.cp-ms-cote__l::before { left: 0; }
.cp-ms-cote__l::after { right: 0; }
.cp-ms-cote__v { position: absolute; left: 50%; top: -14px; padding: 0 12px; background: #F1F3F9; color: #5D6180; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }
.cp-rl--blanc .cp-ms-cote__v { background: #fff; }
.cp-ms-lvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; padding-top: 44px; }
.cp-ms-lv { position: relative; }
.cp-ms-lv::before { content: ""; position: absolute; left: 50%; top: -38px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #000033; transition: background .3s, box-shadow .3s; }
.cp-ms-lv:hover::before { background: var(--o, #FF9900); box-shadow: inset 0 0 0 2px var(--o, #FF9900); }
.cp-ms-lv figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #fff; }
.cp-rl .cp-ms-lv figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s; }
.cp-rl .cp-ms-lv:hover figure img { transform: scale(1.06); filter: none; }
.cp-ms-lv.is-globe figure { display: grid; place-items: center; background: #000033; }
.cp-ms-lv.is-globe svg { width: 40%; fill: none; stroke: var(--o, #FF9900); stroke-width: 1.2; }
.cp-rl .cp-ms-lv .cp-rl__h3 { margin: 14px 0 0; color: #000033; font-size: 19px; }
.cp-ms-lv .cp-rl__h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--o, #FF9900); text-underline-offset: 4px; }
.cp-rl .cp-ms-lv p { margin-top: 6px; color: #5D6180; font-size: 15px; line-height: 1.5; }
.cp-rl .cp-ms-fmt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cp-ms-fmt span { padding: 3px 8px; border-radius: 4px; background: #E6EAF4; color: #000033; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
@media (max-width: 1000px) {
	.cp-ms-cote__l,
	.cp-ms-cote__v,
	.cp-ms-lv::before { display: none; }
	.cp-ms-lvs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
}
@media (max-width: 560px) {
	.cp-ms-lvs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Carnet des critères ---------- */
.cp-ms-px { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.cp-ms-px__txt { margin-top: 18px; }
.cp-ms-px > div:first-child { position: sticky; top: calc(var(--cp-bar-h, 76px) + 40px); }
.cp-ms-carnet { margin: 0; padding: 0; list-style: none; border-radius: 8px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 51, .25), 0 0 0 1px #E3E5EF; }
.cp-ms-carnet li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; padding: 22px 26px; border-bottom: 1px solid #E3E5EF; transition: background .3s; }
.cp-ms-carnet li:last-child { border-bottom: 0; }
.cp-ms-carnet li:hover { background: #FBFBFE; }
.cp-ms-carnet li > span { padding-top: 3px; color: #B06000; font-size: 14px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.cp-rl .cp-ms-carnet .cp-rl__h3 { margin: 0; color: #000033; font-size: 19px; }
.cp-rl .cp-ms-carnet p { margin-top: 4px; color: #5D6180; font-size: 15px; line-height: 1.55; }
@media (max-width: 1000px) {
	.cp-ms-px { grid-template-columns: minmax(0, 1fr); }
	.cp-ms-px > div:first-child { position: static; }
}

/* ---------- Villes ---------- */
.cp-ms-zn { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.cp-ms-zn__txt { margin-top: 18px; }
.cp-rl--nuit .cp-ms-zn__txt a { color: #fff; text-decoration-color: var(--o, #FF9900); }
.cp-rl .cp-ms-villes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cp-ms-villes a,
.cp-ms-villes span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .3s, color .3s; }
.cp-ms-villes a::before,
.cp-ms-villes span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--o, #FF9900); }
.cp-ms-villes a:hover,
.cp-ms-villes a:focus-visible { background: var(--o, #FF9900); color: #000033; outline: none; }
.cp-ms-villes a:hover::before,
.cp-ms-villes a:focus-visible::before { background: #000033; }
.cp-rl--blanc .cp-ms-villes a,
.cp-rl--calque .cp-ms-villes a { background: #EDF0F7; color: #000033; }
@media (max-width: 1000px) {
	.cp-ms-zn { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	[class*="cp-ms-"],
	[class*="cp-ms-"]::before,
	[class*="cp-ms-"]::after { transition: none !important; animation: none !important; }
}
