/*
 * Page mère Jumeau numérique (maquette validée le 06/10, https://claude.ai/artifact/7XHZLBqUDc1F1Ae3aPikbg) :
 * haut de page clair et immersif (nuage, maquette blanche puis matériaux du même point de vue, loupe sur le nuage,
 * étiquettes posées sur le bâtiment), usages en plateaux empilés, comparateur nuage / maquette, niveaux de détail
 * LOD au curseur. Kit propre (préfixe cp-jm), chargé par inc/releve.php seulement si la page l'utilise.
 */

/* ---------- Haut de page « jumeau » ---------- */
/* Sur ce haut de page clair, l'en-tête garde son fond bleu nuit (le menu blanc resterait illisible). */
body:has(.cp-sx-hero.is-jumeau):not(:has(.cp-drawer.is-open)) .cp-header:not(.is-stuck) .cp-bar { background-color: #000033; }
body:has(.cp-sx-hero.is-jumeau):not(:has(.cp-drawer.is-open)) .cp-header:not(.is-stuck) .cp-topbar { background-color: var(--cp-navy-2, #00002A); }
body:has(.cp-sx-hero.is-jumeau) .cp-header::before { opacity: 0; }
.cp-sx-hero.is-jumeau { min-height: min(94vh, 920px); display: grid; align-items: center; background: radial-gradient(80% 90% at 70% 55%, #FFFFFF 0%, #F6F7FB 55%, #E9EDF6 100%); color: #000033; }
.cp-sx-hero.is-jumeau::before,
.cp-sx-hero.is-jumeau.is-charte::before { display: block; right: auto; left: 0; top: 0; z-index: 1; width: 50%; height: 100%; aspect-ratio: auto; background: linear-gradient(90deg, #F6F7FB 0%, rgba(246, 247, 251, .92) 55%, rgba(246, 247, 251, 0) 100%); pointer-events: none; }
.cp-sx-hero.is-jumeau .cp-sx-hero__in { position: relative; z-index: 2; grid-template-columns: minmax(0, 1fr); }
.cp-sx-hero.is-jumeau .cp-sx-hero__txt { max-width: 540px; }
.cp-sx-hero.is-jumeau .cp-sx-crumb { color: #5D6180; }
.cp-sx-hero.is-jumeau .cp-sx-crumb a { color: #000033; }
.cp-sx-hero.is-jumeau .cp-sx-hero__title { color: #000033; font-size: clamp(38px, 4vw, 62px); line-height: 1.04; letter-spacing: -.025em; }
.cp-sx-hero.is-jumeau .cp-sx-hero__title b { display: block; color: #000033; font-weight: 300; }
.cp-sx-hero.is-jumeau .cp-sx-hero__lead { color: #14162E; }
.cp-sx-hero.is-jumeau .cp-sx-btn--ghost { color: #000033; box-shadow: inset 0 0 0 1.5px #000033; background: transparent; }
.cp-jm-box { position: absolute; right: clamp(8px, 2vw, 40px); top: calc(50% + var(--cp-sx-head, 120px) / 2); z-index: 0; width: min(62vw, 1060px); aspect-ratio: var(--r, 1.8); transform: translateY(-50%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.cp-jm-l, .cp-jm-lens { position: absolute; inset: 0; }
.cp-jm-l img, .cp-jm-lens img { width: 100%; height: 100%; max-width: none; object-fit: cover; mix-blend-mode: multiply; }
.cp-jm-box.is-live .cp-jm-l--b,
.cp-jm-box.is-live .cp-jm-l--t { clip-path: inset(0 calc(100% - var(--w, 0%)) 0 0); }
.cp-jm-box.is-live .cp-jm-l--n { opacity: var(--n, 0); }
.cp-jm-lens { clip-path: circle(var(--lr, 0px) at var(--lx, 50%) var(--ly, 50%)); }
.cp-jm-lens::after { content: ""; position: absolute; left: var(--lx, 50%); top: var(--ly, 50%); width: calc(var(--lr, 0px) * 2); height: calc(var(--lr, 0px) * 2); margin: calc(var(--lr, 0px) * -1) 0 0 calc(var(--lr, 0px) * -1); border-radius: 50%; box-shadow: inset 0 0 0 2px #FF9900, inset 0 0 40px rgba(255, 153, 0, .35); }
.cp-jm-scan { position: absolute; top: -4%; bottom: -4%; left: var(--x, 0); width: 2px; margin-left: -1px; background: #FF9900; box-shadow: 0 0 18px 4px rgba(255, 153, 0, .55); opacity: 0; transition: opacity .3s; }
.cp-jm-box.is-scan .cp-jm-scan { opacity: 1; }
.cp-jm-tag { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .6s; }
.cp-jm-box.is-done .cp-jm-tag,
.cp-jm-box:not(.is-live) .cp-jm-tag { opacity: 1; }
.cp-jm-tag b { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #FF9900; box-shadow: 0 0 0 5px rgba(255, 153, 0, .25); }
.cp-jm-tag b::after { content: ""; position: absolute; inset: -9px; border: 2px solid rgba(255, 153, 0, .6); border-radius: 50%; animation: cp-jm-ping 2.4s infinite; }
@keyframes cp-jm-ping { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.cp-jm-tag em { position: absolute; left: 16px; top: -36px; padding: 6px 12px; border-radius: 6px; background: #000033; color: #fff; font-size: 13px; font-weight: 600; font-style: normal; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 51, .6); }
.cp-jm-tag em::before { content: ""; position: absolute; left: -10px; bottom: -10px; width: 12px; height: 1.5px; background: #000033; transform: rotate(-45deg); transform-origin: right center; }
.cp-jm-steps { position: absolute; z-index: 2; right: clamp(16px, 4vw, 56px); top: calc(var(--cp-sx-head, 120px) + 28px); display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.cp-jm-steps li { padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 51, .06); color: #5D6180; font-size: 13px; font-weight: 600; transition: background .4s, color .4s; counter-increment: s; }
.cp-jm-steps li::before { content: counter(s, decimal-leading-zero) "  "; color: #B06000; }
.cp-jm-steps li.is-on { background: #000033; color: #fff; }
.cp-jm-steps li.is-on::before { color: #FF9900; }
.cp-jm-leg { position: absolute; right: clamp(16px, 4vw, 56px); bottom: 26px; z-index: 2; margin: 0; color: #5D6180; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
@media (max-width: 1000px) {
	.cp-sx-hero.is-jumeau { min-height: 0; }
	.cp-sx-hero.is-jumeau::before,
	.cp-sx-hero.is-jumeau.is-charte::before { display: none; }
	.cp-jm-box { left: 0; right: 0; top: calc(var(--cp-sx-head, 120px) + 16px); width: 100%; transform: none; }
	.cp-sx-hero.is-jumeau .cp-sx-hero__in { padding-top: calc(var(--cp-sx-head, 120px) + 56vw + 40px); }
	.cp-jm-steps, .cp-jm-leg { display: none; }
	.cp-jm-tag em { font-size: 11px; padding: 4px 8px; top: -30px; }
	.cp-jm-tag[style^="left:6"] em,
	.cp-jm-tag[style^="left:7"] em,
	.cp-jm-tag[style^="left:8"] em,
	.cp-jm-tag[style^="left:9"] em { left: auto; right: 16px; }
	.cp-jm-tag[style^="left:6"] em::before,
	.cp-jm-tag[style^="left:7"] em::before,
	.cp-jm-tag[style^="left:8"] em::before,
	.cp-jm-tag[style^="left:9"] em::before { display: none; }
}

@media (max-width: 600px) {
	.cp-jm-tag em { display: none; }
}

/* ---------- Titres du kit ---------- */
[class*="cp-rl--jm-"] .cp-rl__cote { display: none; }
[class*="cp-rl--jm-"] .cp-rl__h { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.015em; }
[class*="cp-rl--jm-"] .cp-rl__lead { margin-top: 18px; }
.cp-jm-kick { display: inline-block; color: #B06000; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cp-rl--nuit .cp-jm-kick { color: #FF9900; }

/* ---------- Changer d'échelle au laser (maquette validée le 07/10, remplace les plateaux empilés) ---------- */
.cp-rl--jm-plateaux { overflow: hidden; }
.cp-jm-ech { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 4vw, 72px); align-items: center; margin-top: clamp(48px, 5vw, 80px); }
.cp-jm-ech__r { min-width: 0; }
/* Les usages en très grands mots : contour quand inactifs, pleins quand actifs ; barre de progression orange. */
.cp-jm-mots { display: grid; gap: 6px; }
.cp-jm-mot { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; padding: 6px 0 14px; cursor: pointer; font: 900 clamp(48px, 6.4vw, 104px)/1 'Titillium Web', system-ui, sans-serif; letter-spacing: -.035em; color: transparent; -webkit-text-stroke: 1.4px rgba(190, 205, 255, .55); transition: color .5s, -webkit-text-stroke-color .5s, transform .5s cubic-bezier(.2, .7, .1, 1); }
.cp-jm-mot:hover { -webkit-text-stroke-color: #fff; transform: translateX(8px); }
.cp-jm-mot.is-on { color: #fff; -webkit-text-stroke-color: #fff; transform: translateX(14px); }
.cp-jm-mot:focus-visible { outline: 2px solid #FF9900; outline-offset: 4px; border-radius: 4px; }
.cp-jm-mot i { position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: rgba(160, 180, 255, .2); }
.cp-jm-mot i::after { content: ""; position: absolute; inset: 0; background: #FF9900; transform: scaleX(0); transform-origin: left; }
.cp-jm-mot.is-on i::after { animation: cp-jm-prog var(--cp-jm-dur, 7s) linear forwards; }
.cp-jm-ech.is-pause .cp-jm-mot.is-on i::after { animation-play-state: paused; }
@keyframes cp-jm-prog { to { transform: scaleX(1); } }
/* La scène : l'image active ; la suivante passe au-dessus, révélée par le faisceau de gauche à droite. */
.cp-jm-scene { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #0A0F45; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.cp-rl .cp-jm-scene img.cp-jm-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; }
.cp-rl .cp-jm-scene img.cp-jm-img.is-on { z-index: 1; opacity: 1; }
.cp-rl .cp-jm-scene img.cp-jm-img.is-new { z-index: 2; opacity: 1; clip-path: inset(0 100% 0 0); }
.cp-jm-scene.is-wipe img.cp-jm-img.is-new { animation: cp-jm-wipe 1.4s cubic-bezier(.6, .05, .25, 1) forwards; }
@keyframes cp-jm-wipe { to { clip-path: inset(0 0 0 0); } }
.cp-jm-beam { position: absolute; top: 0; bottom: 0; left: 0; z-index: 3; width: 120px; opacity: 0; pointer-events: none; transform: translateX(-140px); }
.cp-jm-beam::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(#FFD089, #FF9900, #FFD089); box-shadow: 0 0 22px 4px rgba(255, 153, 0, .6), 0 0 70px 14px rgba(255, 153, 0, .2); }
.cp-jm-beam::after { content: ""; position: absolute; inset: 0 2px 0 0; background: radial-gradient(circle, rgba(255, 210, 150, .75) 1px, transparent 1.6px) 0 0 / 6px 6px; -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000); }
.cp-jm-scene.is-wipe .cp-jm-beam { animation: cp-jm-beam 1.4s cubic-bezier(.6, .05, .25, 1) forwards; }
@keyframes cp-jm-beam { 0% { opacity: 1; transform: translateX(-120px); } 92% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(var(--cp-jm-sw, 900px) - 120px)); } }
.cp-jm-scene::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 3; height: 45%; background: linear-gradient(to top, rgba(0, 0, 51, .85), transparent); pointer-events: none; }
.cp-rl .cp-jm-cap { position: absolute; left: 24px; right: 24px; bottom: 18px; z-index: 4; margin: 0; color: #fff; font-size: 15px; line-height: 1.4; font-weight: 600; }
/* Loupe de précision : grossit le détail sous le pointeur (souris seulement). */
.cp-jm-loupe { position: absolute; z-index: 5; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; opacity: 0; pointer-events: none; background-repeat: no-repeat; box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(0, 0, 51, .45), 0 20px 50px rgba(0, 0, 0, .6); transition: opacity .25s; }
.cp-jm-loupe::before, .cp-jm-loupe::after { content: ""; position: absolute; background: #FF9900; }
.cp-jm-loupe::before { left: 50%; top: 30%; bottom: 30%; width: 1px; }
.cp-jm-loupe::after { top: 50%; left: 30%; right: 30%; height: 1px; }
@media (hover: hover) and (pointer: fine) {
	.cp-jm-scene { cursor: none; }
	.cp-jm-scene:hover .cp-jm-loupe { opacity: 1; }
}
/* Texte de l'usage actif, sous la scène. */
.cp-jm-pans { display: grid; margin-top: 28px; }
.cp-jm-pan { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 40px; align-items: start; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; pointer-events: none; }
.cp-jm-pan.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .55s; }
.cp-rl .cp-jm-pan .cp-rl__h3 { grid-column: 1 / -1; margin: 0; color: #fff; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.cp-rl .cp-jm-pan p { margin: 0; color: rgba(225, 230, 255, .8); font-size: 17px; }
.cp-jm-pan ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-jm-pan li { position: relative; padding-left: 18px; color: #E4E5F2; font-size: 16px; }
.cp-jm-pan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: #FF9900; }
.cp-jm-more { grid-column: 1 / -1; justify-self: start; margin-top: 10px; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: #FF9900; text-underline-offset: 5px; }
/* Le bloc tient dans la hauteur de l'écran (demande client du 16/10) : l'image garde toute la largeur de sa colonne
   et ne dépasse pas la hauteur laissée sous le menu une fois le texte de l'onglet placé ; les grands mots suivent aussi
   la hauteur. Sur un écran assez haut, l'image reprend son format 16:10. */
@media (min-width: 1001px) {
	.cp-jm-ech__r { container-type: inline-size; }
	.cp-jm-scene { aspect-ratio: auto; width: 100%; height: min(62.5cqw, max(280px, calc(100svh - var(--cp-bar-h, 76px) - 290px))); }
	.cp-jm-mot { font-size: clamp(40px, min(6.4vw, 10svh), 104px); }
	.cp-jm-pans { margin-top: 20px; }
}
@media (max-width: 1000px) {
	.cp-jm-ech { grid-template-columns: minmax(0, 1fr); }
	.cp-jm-mots { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
	.cp-jm-mot { width: auto; flex: none; font-size: clamp(38px, 9vw, 64px); }
	.cp-jm-mot.is-on, .cp-jm-mot:hover { transform: none; }
	.cp-jm-pan { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.cp-jm-scene.is-wipe img.cp-jm-img.is-new { animation: none; clip-path: none; }
	.cp-jm-beam { display: none; }
	.cp-jm-mot.is-on i::after { animation: none; transform: scaleX(1); }
	.cp-jm-pan, .cp-jm-mot { transition: none; }
}

/* ---------- Comparateur ---------- */
.cp-rl .cp-jm-cmpw { margin: clamp(40px, 4vw, 56px) 0 0; }
.cp-jm-cmp { position: relative; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #E3E5EF, 0 40px 70px -40px rgba(0, 0, 51, .4); }
.cp-rl .cp-jm-cmp img { display: block; width: 100%; height: auto; }
.cp-jm-cmp__b { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x, 50%)); }
.cp-rl .cp-jm-cmp__b img { height: 100%; object-fit: cover; }
.cp-jm-cmp__h { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #FF9900; pointer-events: none; }
.cp-jm-cmp__h::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #FF9900 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000033' stroke-width='2'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; }
.cp-jm-cmp__l { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 51, .85); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.cp-jm-cmp__l--a { left: 14px; }
.cp-jm-cmp__l--b { right: 14px; }
.cp-jm-cmp__r { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cp-jm-cmpw figcaption { margin-top: 12px; color: #5D6180; font-size: 14px; }
.cp-jm-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 36px; }
.cp-jm-way { padding: 22px 24px; border-radius: 8px; box-shadow: inset 0 0 0 1px #E3E5EF; transition: box-shadow .3s, background .3s; }
.cp-jm-way:hover { background: #FBFBFE; box-shadow: inset 0 0 0 1.5px #FF9900; }
.cp-rl .cp-jm-way .cp-rl__h3 { margin: 8px 0 0; color: #000033; font-size: 21px; }
.cp-rl .cp-jm-way p { margin-top: 8px; color: #5D6180; font-size: 16px; }

/* ---------- Niveaux de détail ---------- */
.cp-jm-lod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; margin-top: 48px; }
.cp-jm-lodv { aspect-ratio: 1.1; }
.cp-jm-lodv canvas { display: block; width: 100%; height: 100%; }
.cp-jm-lodn { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-jm-lodn button { all: unset; flex: 1 1 0; min-width: 64px; padding: 12px 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; font-weight: 700; text-align: center; cursor: pointer; transition: background .3s, color .3s; font-variant-numeric: tabular-nums; }
.cp-jm-lodn button.is-on { background: #FF9900; color: #000033; }
.cp-jm-lodn button:focus-visible { outline: 2px solid #FF9900; outline-offset: 2px; }
.cp-jm-lodr { width: 100%; margin: 22px 0 0; accent-color: #FF9900; }
.cp-jm-lodt { display: grid; margin: 26px 0 0; padding: 0; list-style: none; }
.cp-jm-lodt li { grid-area: 1 / 1; opacity: 0; transition: opacity .4s; }
.cp-jm-lodt li.is-on { opacity: 1; }
.cp-rl .cp-jm-lodt .cp-rl__h3 { margin: 0; color: #fff; font-size: 26px; }
.cp-rl .cp-jm-lodt p { margin-top: 10px; color: #C9CBE3; font-size: 17px; }
.cp-jm-lodnote { margin-top: 18px; }
.cp-rl .cp-jm-lodnote p { color: #C9CBE3; font-size: 16px; }
.cp-rl--jm-lod:not(.is-live) .cp-jm-lodv,
.cp-rl--jm-lod:not(.is-live) .cp-jm-lodn,
.cp-rl--jm-lod:not(.is-live) .cp-jm-lodr { display: none; }
.cp-rl--jm-lod:not(.is-live) .cp-jm-lodt { gap: 18px; }
.cp-rl--jm-lod:not(.is-live) .cp-jm-lodt li { grid-area: auto; opacity: 1; }
@media (max-width: 1000px) {
	.cp-jm-lod { grid-template-columns: minmax(0, 1fr); }
}

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