/* /conception-web/ : « The Digital Circuit » (27/09/2026).
   Palette SENTEKIA : rouge #B1230A (signal, CTA), rouge lumineux #E54325 (lignes actives sur noir),
   blanc, beige #F1ECE4, plusieurs profondeurs de noir. Mobile d'abord, montée en gamme par min-width. */

:root {
  --cw-black: #050505;
  --cw-black-2: #0a0a0a;
  --cw-black-3: #111111;
  --cw-wire: #262626;
  --cw-wire-2: #3a3a3a;
  --cw-red: #B1230A;
  --cw-red-hi: #E54325;
  --cw-white: #ffffff;
  --cw-beige: #F1ECE4;
  --cw-beige-2: #E6DDD1;
  --cw-muted: #8d8984;
  --cw-gutter: clamp(20px, 4.25vw, 72px);
  --cw-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { background: var(--cw-black); }
body.cw-page { background: var(--cw-black); color: var(--cw-white); }
.cw { position: relative; overflow-x: clip; font-family: Inter, Helvetica, Arial, sans-serif; }
.cw p { margin: 0; }
.cw-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cw-label { font: 500 11px/1.4 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cw-muted); }
.cw-h2 { margin: 0; font-weight: 800; font-size: clamp(2.3rem, 5vw, 5.4rem); line-height: 0.95; letter-spacing: -0.045em; max-width: 16ch; }
.cw-line-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }

/* Boutons */
.cw-btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 1.05em 1.5em; font: 600 13px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.cw-btn--primary { background: var(--cw-red); color: var(--cw-white); }
.cw-btn--primary:hover, .cw-btn--primary:focus-visible { background: var(--cw-red-hi); }
.cw-btn--ghost { color: var(--cw-white); border-color: rgba(255, 255, 255, 0.28); }
.cw-btn--ghost:hover, .cw-btn--ghost:focus-visible { border-color: var(--cw-white); }
.cw-btn span { transition: transform 0.3s var(--cw-ease); }
.cw-btn:hover span { transform: translateX(4px); }

/* ---------- 0. LE CIRCUIT : la puce, puis cinq étapes allumées par la piste ---------- */
.cw-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.cw-circuit { position: relative; overflow: clip; padding: 0 var(--cw-gutter) 30vh; background: radial-gradient(80% 50% at 78% 6%, rgba(229, 67, 37, 0.08), transparent 62%), var(--cw-black); }
/* Trame de circuit très discrète : le décor, jamais le sujet */
.cw-circuit::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px); background-size: 56px 56px; }

/* Les pistes passent au premier plan, dans les espaces libres et autour des blocs */
.cw-pcb { position: absolute; left: 0; top: 0; z-index: 3; overflow: visible; pointer-events: none; }
.cw-pcb path { fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.cw-pcb__base path { stroke: rgba(128, 128, 128, 0.3); stroke-width: 2; }
.cw-pcb__live path { stroke: var(--cw-red-hi); stroke-width: 2.4; }
.cw-pcb__live { filter: drop-shadow(0 0 3px rgba(229, 67, 37, 0.9)) drop-shadow(0 0 10px rgba(229, 67, 37, 0.45)); }
.cw-pcb .is-frame { stroke-width: 4; stroke-linecap: square; }
.cw-pcb__base .is-frame { stroke: rgba(128, 128, 128, 0.22); stroke-width: 1.5; }
.cw-pcb .is-stub { stroke-width: 1.6; }
.cw-pcb__base .is-stub { stroke: rgba(128, 128, 128, 0.2); }
.cw-dot { fill: #2a2a2a; }
.cw-ring { fill: var(--cw-black); stroke: #2e2e2e; stroke-width: 3; }
.cw-end { fill: none; stroke: #2e2e2e; stroke-width: 3; }
.cw-pcb__live .cw-dot, .cw-pcb__live .cw-term, .cw-pcb__live .cw-end { opacity: 0; transition: opacity 0.3s ease; }
.cw-pcb__live .cw-dot { fill: var(--cw-red-hi); }
.cw-pcb__live .cw-ring { stroke: var(--cw-red-hi); }
.cw-pcb__live .cw-end { stroke: var(--cw-red-hi); }
.cw-pcb__live .is-on { opacity: 1; }
.cw-pcb__live .cw-term .cw-dot { opacity: 1; }
.cw-spark { position: absolute; left: 0; top: 0; z-index: 4; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(229, 67, 37, 0.6), 0 0 24px 8px rgba(229, 67, 37, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; will-change: transform; }

/* Ouverture : même titre en capitales que les autres expertises, la puce à côté */
.cw-top { position: relative; z-index: 2; min-height: 100svh; display: grid; align-content: center; gap: 64px; padding: 120px 0 12vh; }
.cw-top .cw-label { color: var(--cw-red-hi); }
.cw-top__title { margin: 16px 0 0; font-weight: 800; font-size: clamp(38px, 6.2vw, 84px); line-height: 0.92; letter-spacing: -0.06em; text-transform: uppercase; color: #fff; }
.cw-top__lead { max-width: 42ch; margin-top: 22px !important; font: italic 400 clamp(16px, 1.45vw, 22px)/1.4 Fraunces, Georgia, serif; color: rgba(241, 236, 228, 0.9); }
.cw-top__cta { margin-top: 30px; }
.cw-top.is-on .cw-top__copy > * { animation: cw-rise 1s var(--cw-ease) both; }
.cw-top.is-on .cw-top__copy > :nth-child(2) { animation-delay: 0.12s; }
.cw-top.is-on .cw-top__copy > :nth-child(3) { animation-delay: 0.26s; }
.cw-top.is-on .cw-top__copy > :nth-child(4) { animation-delay: 0.4s; }
@keyframes cw-rise { from { opacity: 0; transform: translateY(26px); } }
.cw-top__hint { position: absolute; left: 0; bottom: 5vh; font: 500 10px/1 'IBM Plex Mono', monospace; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cw-muted); }

/* La puce SENTEKIA : un bloc image cadré de rouge, broches sur trois côtés, le nom par-dessus */
/* Bannière 16:9 presque bord à bord (déborde de la marge de la section, centrée) */
.cw-ic { position: relative; min-width: 0; margin-inline: calc(2px - var(--cw-gutter)); }
.cw-ic::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(circle, rgba(229, 67, 37, 0.2), transparent 62%); opacity: 0; transition: opacity 1.4s ease 0.6s; }
.cw-ic.is-on::before { opacity: 1; }
.cw-ic__svg { display: block; width: 100%; height: auto; overflow: visible; }
.cw-ic__base { fill: #0e0e0e; }
.cw-ic__img { opacity: 0; transition: opacity 1.2s ease 0.3s; }
.cw-ic__shade { fill: rgba(0, 0, 0, 0.1); }
.cw-ic__name { fill: #fff; font: 800 60px Inter, 'Open Sans', sans-serif; text-anchor: middle; dominant-baseline: middle; letter-spacing: 0.01em; opacity: 0; transition: opacity 0.9s ease 0.9s; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55)); }
.cw-ic__frame { fill: none; stroke: #3a3a3a; stroke-width: 2; transition: stroke 0.6s ease 0.2s; }
.cw-ic__pins rect { fill: #1a1a1a; stroke: #3a3a3a; transition: fill 0.35s ease, stroke 0.35s ease; transition-delay: calc(var(--p, 0) * 70ms); }
.cw-ic.is-on .cw-ic__img, .cw-ic.is-on .cw-ic__name { opacity: 1; }
.cw-ic.is-on .cw-ic__frame { stroke: var(--cw-red-hi); }
.cw-ic.is-on .cw-ic__pins rect { fill: var(--cw-red); stroke: var(--cw-red-hi); }
.cw-ic.is-on .cw-ic__pins .is-out { animation: cw-pin 1.6s ease-in-out 1.4s infinite; }
@keyframes cw-pin { 50% { fill: #fff; stroke: #fff; } }
/* Pistes de l'ouverture : du bouton et du bord vers les broches, tracées à l'allumage */
.cw-pcb__live .is-boot { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(0.45, 0, 0.55, 1) 0.3s; }
.cw-pcb__live .is-boot { stroke-width: 2; }
.cw.is-booted .cw-pcb__live .is-boot { stroke-dashoffset: 0; }
/* Embrasement : au contact du fil, la bordure entière s'allume depuis le point de contact et reste allumée */
.cw-pcb__live .cw-ignite { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.cw-pcb__live .cw-ignite.is-on { stroke-dashoffset: 0; animation: cw-flash 1.1s ease-out; }
@keyframes cw-flash { 0%, 35% { stroke: #fff; stroke-width: 6; } 100% { stroke: var(--cw-red-hi); stroke-width: 4; } }
.cw-ic__origin { position: absolute; left: 50%; top: 95.3%; width: 2px; height: 2px; margin: -1px 0 0 -1px; }

/* La carte : des blocs de formats variés, placés comme sur un circuit imprimé.
   Chaque bloc attend la piste, son cadre se trace, puis l'image ou le texte se révèle et reste figé. */
.cw-circuit { --map: min(1180px, 100vw - 2 * var(--cw-gutter)); }
.cw-map { position: relative; z-index: 2; width: var(--map); margin: 0 auto; padding-top: 6vh; }
.cw-n { --nw: 0.5; position: relative; width: calc(var(--nw) * 100%); margin: clamp(96px, 15vh, 170px) 0 0; }
.cw-n:first-child { margin-top: 0; }
.cw-n[data-x="right"], .cw-n[data-x="center"] { margin-left: auto; }
.cw-n--pano { --nw: 1; }
.cw-n--wide { --nw: 0.92; }
.cw-n--sq { --nw: 0.5; }
.cw-n--v45 { --nw: 0.46; }
.cw-n--text { --nw: 0.9; }

.cw-n__media { position: relative; overflow: hidden; background: #0a0a0a; }
.cw-n--pano .cw-n__media { aspect-ratio: 2.4 / 1; }
.cw-n--wide .cw-n__media { aspect-ratio: 16 / 9; }
.cw-n--sq .cw-n__media { aspect-ratio: 1; }
.cw-n--v45 .cw-n__media { aspect-ratio: 4 / 5; }
.cw-n__media img, .cw-n__media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: clip-path 1.1s var(--cw-ease) 0.1s, transform 1.6s var(--cw-ease) 0.1s; }
.cw-ready .cw-n:not(.is-lit) .cw-n__media img, .cw-ready .cw-n:not(.is-lit) .cw-n__media video { clip-path: inset(0 0 100% 0); transform: scale(1.12); }

/* Petites légendes : dans l'espace libre à côté du bloc, mot par mot */
.cw-tag { position: absolute; top: 10%; width: min(300px, calc(var(--map) * (1 - var(--nw)) - 40px)); font: italic 400 12.5px/1.5 Inter, sans-serif; color: #d8d2c9; }
.cw-n[data-x="left"] .cw-tag { left: calc(100% + 20px); }
.cw-n[data-x="right"] .cw-tag, .cw-n[data-x="center"] .cw-tag { right: calc(100% + 20px); text-align: right; }
.cw-n--pano .cw-tag, .cw-n--wide .cw-tag { position: static; width: min(40ch, 74%); margin: 14px 0 0 auto; text-align: left; }
.cw-n--wide[data-x="right"] .cw-tag { margin: 14px auto 0 0; text-align: left; }
.cw-tag a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--cw-red-hi); font-style: normal; font-weight: 600; }
.cw-tag .w { display: inline-block; transition: opacity 0.5s ease, transform 0.6s var(--cw-ease); transition-delay: calc(var(--w, 0) * 32ms + 0.75s); }
.cw-ready .cw-n:not(.is-lit) .cw-tag .w { opacity: 0; transform: translateY(8px); }

/* Blocs de texte : double cadre, comme sur la maquette */
.cw-n--text { padding: 10px; }
.cw-n--text .cw-n__inner { padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(229, 67, 37, 0.7); transition: border-color 0.8s ease 0.4s; }
.cw-n__k { font: 500 11px/1 'IBM Plex Mono', monospace; letter-spacing: 0.22em; color: var(--cw-red-hi); }
.cw-n__title { margin: 12px 0 0; font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: #fff; }
.cw-n__text { margin-top: 16px !important; max-width: 40ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: rgba(241, 236, 228, 0.88); }
.cw-n--text .cw-n__inner > * { transition: opacity 0.7s ease, transform 0.9s var(--cw-ease); }
.cw-n--text .cw-n__inner > :nth-child(2) { transition-delay: 0.12s; }
.cw-n--text .cw-n__inner > :nth-child(3) { transition-delay: 0.26s; }
.cw-ready .cw-n--text:not(.is-lit) .cw-n__inner { border-color: transparent; }
.cw-ready .cw-n--text:not(.is-lit) .cw-n__inner > * { opacity: 0; transform: translateY(16px); }

/* Trame hexagonale : décor discret, jamais devant un bloc */
.cw-hex { position: absolute; z-index: 1; width: clamp(180px, 26vw, 360px); height: auto; aspect-ratio: 300 / 260; fill: none; stroke: #3a3a3a; stroke-width: 1; opacity: 0.55; pointer-events: none; }
.cw-hex circle { fill: #4a4a4a; stroke: none; }
.cw-hex--1 { right: -40px; top: 26%; }
.cw-hex--2 { left: -60px; top: 44%; }
.cw-hex--3 { right: -30px; top: 63%; transform: rotate(18deg); }
.cw-hex--4 { left: 8%; top: 86%; }

.cw-circuit__end { position: absolute; left: calc(50% - var(--map) / 2 + 24px); bottom: 8vh; width: 2px; height: 2px; }

@media (min-width: 1024px) {
  .cw-ic { margin-inline: calc(24px - var(--cw-gutter)); }
  .cw-n { margin-top: clamp(120px, 20vh, 220px); }
  .cw-n[data-x="center"] { margin-right: auto; }
  .cw-n[data-x="center"] .cw-tag { width: min(300px, calc(var(--map) * (1 - var(--nw)) / 2 - 40px)); }
  .cw-n--wide { --nw: 0.62; }
  .cw-n--sq { --nw: 0.34; }
  .cw-n--v45 { --nw: 0.3; }
  .cw-n--text { --nw: 0.5; }
  .cw-tag { font-size: 14px; }
}

/* ---------- 3. ARCHITECTURE TECHNIQUE (fond beige : moment informatif) ---------- */
.cw-tech { background: var(--cw-beige); color: #0a0a0a; }
.cw-tech__pin { padding: 14vh var(--cw-gutter); display: grid; gap: 44px; }
.cw-tech .cw-label { color: var(--cw-red); }
.cw-tech__lead { max-width: 46ch; margin-top: 18px !important; font-size: 15px; line-height: 1.6; color: #3d3a36; }
.cw-stack { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; }
.cw-layer { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid rgba(10, 10, 10, 0.14); opacity: 0.35; transition: opacity 0.5s ease; }
.cw-layer:last-of-type { border-bottom: 1px solid rgba(10, 10, 10, 0.14); }
.cw-layer.is-on { opacity: 1; }
.cw-layer__name { font: 600 12px/1 'IBM Plex Mono', monospace; letter-spacing: 0.2em; }
.cw-layer.is-on .cw-layer__name { color: var(--cw-red); }
.cw-layer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-layer__tags i { font-style: normal; font-size: 13px; padding: 5px 9px; border: 1px solid rgba(10, 10, 10, 0.18); background: rgba(255, 255, 255, 0.45); transform: translateY(6px); opacity: 0; transition: opacity 0.45s ease, transform 0.5s var(--cw-ease); transition-delay: var(--d, 0ms); }
.cw-layer.is-on .cw-layer__tags i { opacity: 1; transform: none; }
.cw-stack__flow { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(10, 10, 10, 0.12); }
.cw-stack__flow b { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--cw-red); transform-origin: top; transform: scaleY(0); }

/* ---------- 4. SOLUTIONS ---------- */
.cw-branches { background: var(--cw-black-2); }
.cw-branches__pin { padding: 14vh var(--cw-gutter); display: grid; gap: 40px; }
.cw-branches__lead { max-width: 52ch; margin-top: 18px !important; font-size: 15px; line-height: 1.6; color: var(--cw-beige); opacity: 0.8; }
.cw-branches__body { display: grid; gap: 28px; }
.cw-branch-list { position: relative; margin: 0; padding: 0 0 0 22px; list-style: none; border-left: 1px solid var(--cw-wire-2); display: none; }
.cw-branch-list li { position: relative; padding: 10px 0 10px 18px; font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; color: #5c5955; cursor: default; transition: color 0.35s ease; }
.cw-branch-list li::before { content: ""; position: absolute; left: -23px; top: 50%; width: 30px; height: 1px; background: var(--cw-wire-2); transform-origin: left; transition: background 0.35s ease; }
.cw-branch-list li span { margin-right: 14px; font: 500 11px 'IBM Plex Mono', monospace; color: var(--cw-muted); }
.cw-branch-list li.is-on { color: var(--cw-white); }
.cw-branch-list li.is-on::before { background: var(--cw-red-hi); height: 2px; }
.cw-branch-stage { position: relative; display: grid; gap: 64px; }
.cw-mini__cap { margin-top: 14px !important; font-size: 14px; line-height: 1.55; color: var(--cw-beige); opacity: 0.8; max-width: 46ch; }
.cw-mini { position: relative; }

.cw-browser { border: 1px solid var(--cw-wire-2); background: var(--cw-black-3); }
.cw-browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--cw-wire); }
.cw-browser__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--cw-wire-2); }
.cw-browser__bar em { margin-left: 12px; font: normal 500 10px 'IBM Plex Mono', monospace; color: var(--cw-muted); }
.cw-browser__view { aspect-ratio: 16 / 10; overflow: hidden; }
.cw-browser__view img { width: 100%; height: auto; display: block; }
.cw-mini.is-live .cw-browser__view img { animation: cw-site-scroll 7s ease-in-out infinite alternate; }
@keyframes cw-site-scroll { 0%, 15% { transform: translateY(0) scale(1); } 100% { transform: translateY(-8%) scale(1.06); } }

.cw-shop { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 16px; border: 1px solid var(--cw-wire-2); background: var(--cw-black-3); }
.cw-shop__step { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); text-align: center; gap: 10px; padding: 12px 6px; border: 1px solid var(--cw-wire); opacity: 0.35; transition: opacity 0.4s ease, border-color 0.4s ease; }
.cw-shop__step img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.cw-shop__step b { font: 600 clamp(8px, 2.2vw, 10px) 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.cw-shop__icon { display: grid; place-items: center; aspect-ratio: 3 / 4; font: normal 700 22px Inter, sans-serif; color: var(--cw-white); background: #161616; }
.cw-shop__step.is-on { opacity: 1; border-color: var(--cw-red-hi); }
.cw-shop__bar { grid-column: 1 / -1; height: 2px; background: var(--cw-wire); }
.cw-shop__bar b { display: block; height: 100%; width: 0; background: var(--cw-red-hi); transition: width 0.6s var(--cw-ease); }

.cw-dash { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px; border: 1px solid var(--cw-wire-2); background: var(--cw-black-3); min-height: 250px; }
.cw-dash aside { grid-row: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.cw-dash aside i { height: 20px; background: #1c1c1c; }
.cw-dash aside i:first-child { background: var(--cw-red); }
.cw-dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cw-dash__kpis b { padding: 10px; border: 1px solid var(--cw-wire); font-weight: 400; }
.cw-dash__kpis em { display: block; font: normal 500 9px 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cw-muted); }
.cw-dash__kpis strong { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -0.03em; }
.cw-dash__chart { display: flex; align-items: flex-end; gap: 7px; min-height: 110px; padding: 10px; border: 1px solid var(--cw-wire); }
.cw-dash__chart i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--cw-red-hi), var(--cw-red)); transform-origin: bottom; transform: scaleY(0.05); transition: transform 0.8s var(--cw-ease); transition-delay: var(--d, 0ms); }
.cw-mini.is-live .cw-dash__chart i { transform: scaleY(1); }
.cw-dash__mods { display: flex; gap: 8px; }
.cw-dash__mods b { flex: 1; padding: 8px; border: 1px solid var(--cw-wire); font: 500 9px 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cw-muted); transition: border-color 0.4s ease, color 0.4s ease; transition-delay: var(--d, 0ms); }
.cw-mini.is-live .cw-dash__mods b { border-color: var(--cw-red-hi); color: var(--cw-white); }

.cw-phone { width: min(62%, 240px); aspect-ratio: 9 / 18.5; margin: 0 auto; padding: 8px; border: 1px solid var(--cw-wire-2); border-radius: 28px; background: #0d0d0d; }
.cw-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: #000; display: block; }

.cw-auto { width: 100%; height: auto; border: 1px solid var(--cw-wire-2); background: var(--cw-black-3); }
.cw-auto__links path { stroke: var(--cw-wire-2); stroke-width: 1.4; }
.cw-mini.is-live .cw-auto__links path { stroke: rgba(229, 67, 37, 0.55); }
.cw-auto__nodes rect { fill: #151515; stroke: var(--cw-wire-2); }
.cw-auto__nodes .is-hub rect { stroke: var(--cw-red-hi); }
.cw-auto__nodes text { fill: var(--cw-beige); font: 500 9px 'IBM Plex Mono', monospace; text-anchor: middle; letter-spacing: 0.04em; }
.cw-auto__packet { fill: var(--cw-white); opacity: 0; }

.cw-ai { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--cw-wire-2); background: var(--cw-black-3); min-height: 250px; align-content: center; }
.cw-ai p { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.6s var(--cw-ease); }
.cw-ai__in { justify-self: start; padding: 12px 14px; background: #1c1c1c; font-size: 14px; }
.cw-ai__scan { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-ai__scan i, .cw-ai__out b { font-style: normal; padding: 6px 9px; border: 1px dashed var(--cw-wire-2); font: 500 10px 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cw-muted); }
.cw-ai__out { display: flex; flex-wrap: wrap; gap: 6px; justify-self: end; }
.cw-ai__out b { border: 1px solid var(--cw-red-hi); color: var(--cw-white); font-weight: 600; }
.cw-mini.is-live .cw-ai p { opacity: 1; transform: none; }
.cw-mini.is-live .cw-ai__scan { transition-delay: 0.6s; }
.cw-mini.is-live .cw-ai__out { transition-delay: 1.3s; }

/* ---------- 5. SHOWREEL (mobile : liste) ---------- */
.cw-show { background: var(--cw-black); }
.cw-show__pin { padding: 14vh var(--cw-gutter); }
.cw-show__head { margin-bottom: 40px; }
.cw-show__space { display: grid; gap: 40px; }
.cw-card { display: block; text-decoration: none; color: var(--cw-white); }
.cw-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cw-black-3); border: 1px solid rgba(255, 255, 255, 0.1); }
.cw-card__media img, .cw-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px !important; }
.cw-card__meta b { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.cw-card__meta span { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cw-muted); align-self: center; }

/* ---------- 6. PROCESSUS (fond beige : moment calme) ---------- */
.cw-process { background: var(--cw-beige); color: #0a0a0a; padding: 16vh var(--cw-gutter); }
.cw-process .cw-label { color: var(--cw-red); }
.cw-nodes { position: relative; display: grid; gap: 0; margin: 56px 0 0; padding: 0 0 0 28px; list-style: none; }
.cw-nodes::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: rgba(10, 10, 10, 0.18); }
.cw-nodes::after { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--cw-red); transform-origin: top; transform: scaleY(var(--cw-p, 0)); }
.cw-node { position: relative; padding: 16px 0 18px; }
.cw-node__dot { position: absolute; left: -27px; top: 21px; width: 13px; height: 13px; border: 1px solid rgba(10, 10, 10, 0.4); background: var(--cw-beige); transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--cw-ease); }
.cw-node__n { font: 500 11px 'IBM Plex Mono', monospace; letter-spacing: 0.14em; color: #7a746c; }
.cw-node b { display: block; margin-top: 6px; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -0.03em; color: #8a847b; transition: color 0.4s ease; }
.cw-node p { margin-top: 6px !important; font-size: 14px; line-height: 1.5; color: #4a4640; max-width: 36ch; }
.cw-node.is-on .cw-node__dot { background: var(--cw-red); border-color: var(--cw-red); transform: rotate(45deg); }
.cw-node.is-on b { color: #0a0a0a; }

/* ---------- 7. CAPACITÉS (mobile : familles empilées) ---------- */
.cw-caps { background: var(--cw-black-2); padding: 16vh var(--cw-gutter); }
.cw-constellation { position: relative; display: grid; gap: 36px; margin-top: 56px; }
.cw-constellation__links { display: none; }
.cw-cluster__hub { display: inline-block; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.035em; padding-bottom: 6px; border-bottom: 2px solid var(--cw-red-hi); }
.cw-cluster ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.cw-cluster li { font-size: 14px; padding: 6px 10px; border: 1px solid var(--cw-wire-2); color: var(--cw-beige); }

/* ---------- 8. CTA FINAL ---------- */
.cw-final { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 16vh var(--cw-gutter); overflow: hidden; background: var(--cw-black); text-align: center; }
.cw-final__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cw-final__lines path { fill: none; stroke: var(--cw-wire-2); stroke-width: 1; }
.cw-final__lines path.is-signal { stroke: var(--cw-red-hi); }
.cw-final__ring { position: absolute; left: 50%; top: 50%; width: min(70vw, 620px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.02); border-radius: 50%; border: 1px solid rgba(229, 67, 37, 0.6); background: radial-gradient(circle, rgba(177, 35, 10, 0.2) 0%, rgba(5, 5, 5, 0) 62%); opacity: 0; }
.cw-final.is-lit .cw-final__ring { animation: cw-breathe 6s ease-in-out infinite; }
@keyframes cw-breathe { 50% { transform: translate(-50%, -50%) scale(1.03); } }
.cw-final__copy { position: relative; z-index: 2; display: grid; justify-items: center; }
.cw-final__title { margin: 0; font-weight: 800; font-size: clamp(2.6rem, 7.6vw, 8rem); line-height: 0.94; letter-spacing: -0.05em; max-width: 14ch; }
.cw-final__lead { margin-top: 22px !important; max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--cw-beige); opacity: 0.85; }
.cw-final .cw-hero__cta { justify-content: center; }

/* ---------- Curseur (ordinateur uniquement) ---------- */
.cw-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cw-cursor { display: block; position: fixed; left: 0; top: 0; z-index: 9990; pointer-events: none; mix-blend-mode: difference; }
  .cw-cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; transition: width 0.3s var(--cw-ease), height 0.3s var(--cw-ease), margin 0.3s var(--cw-ease); }
  .cw-cursor.has-label .cw-cursor__dot { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .cw-cursor__label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 600 9px 'IBM Plex Mono', monospace; letter-spacing: 0.14em; color: #000; opacity: 0; transition: opacity 0.2s ease; }
  .cw-cursor.has-label .cw-cursor__label { opacity: 1; }
}

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 768px) {
  .cw-branch-list { display: block; }
  .cw-branches__body { grid-template-columns: minmax(220px, 0.8fr) 1.6fr; gap: 6vw; align-items: center; }
  .cw-show__space { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .cw-constellation { grid-template-columns: repeat(2, 1fr); }
}

/* Ordinateur : expérience épinglée (activée par le script, classe .cw-cine sur <html>) */
@media (min-width: 1024px) {
  .cw-cine .cw-branch-stage { display: block; min-height: 380px; }
  .cw-cine .cw-branch-stage .cw-mini { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.6s var(--cw-ease), visibility 0s linear 0.5s; }
  .cw-cine .cw-branch-stage .cw-mini.is-live { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .cw-cine .cw-tech__pin { min-height: 100svh; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 6vw; padding-top: 0; padding-bottom: 0; }
  .cw-cine .cw-branches__pin { min-height: 100svh; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: 5vw; row-gap: 36px; align-content: center; align-items: center; padding-top: 8vh; padding-bottom: 4vh; }

  .cw-cine .cw-branches__body { display: contents; }
  .cw-cine .cw-branches__head { grid-column: 1; grid-row: 1; align-self: end; }
  .cw-cine .cw-branches__head .cw-h2 { font-size: clamp(2.2rem, 3.4vw, 3.8rem); }
  .cw-cine .cw-branch-list { grid-column: 1; grid-row: 2; align-self: start; }
  .cw-cine .cw-branch-stage { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: min(620px, 72svh); }
  .cw-cine .cw-branch-stage .cw-mini { top: 50%; bottom: auto; transform: translateY(calc(-50% + 24px)); }
  .cw-cine .cw-branch-stage .cw-mini.is-live { transform: translateY(-50%); }
  .cw-cine .cw-show__pin { height: 100svh; padding-top: 12vh; padding-bottom: 0; overflow: hidden; }
  .cw-cine .cw-show__space { display: block; position: relative; height: 70vh; perspective: 1400px; }
  .cw-cine .cw-card { position: absolute; left: 50%; top: 46%; width: min(52vw, 820px); margin: 0; transform-origin: center; will-change: transform, opacity; }
  .cw-nodes { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 16px; padding: 36px 0 0; }
  .cw-node b { font-size: clamp(13px, 1vw, 17px); letter-spacing: -0.02em; overflow-wrap: anywhere; }
  .cw-node p { font-size: 13px; }
  .cw-nodes::before, .cw-nodes::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .cw-nodes::after { transform-origin: left; transform: scaleX(var(--cw-p, 0)); }
  .cw-node { padding: 0; }
  .cw-node__dot { left: 0; top: -36px; }
  .cw-node:hover .cw-node__dot { transform: rotate(45deg) scale(1.3); background: var(--cw-red); border-color: var(--cw-red); }
  .cw-node:hover b { color: #0a0a0a; }
  .cw-constellation { display: block; height: 78vh; min-height: 620px; }
  .cw-constellation__links { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .cw-constellation__links path { fill: none; stroke: var(--cw-wire); stroke-width: 1; transition: stroke 0.35s ease; }
  .cw-constellation__links path.is-on { stroke: var(--cw-red-hi); }
  .cw-cluster { position: absolute; left: 0; top: 0; width: 0; height: 0; }
  .cw-cluster__hub { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; cursor: default; }
  .cw-cluster ul { display: contents; }
  .cw-cluster li { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; transition: border-color 0.35s ease, color 0.35s ease; background: var(--cw-black-2); }
  .cw-cluster.is-on li { border-color: var(--cw-red-hi); color: var(--cw-white); }
}

/* Mouvement réduit : tout est lisible sans animation */
@media (prefers-reduced-motion: reduce) {
  .cw-layer__tags i, .cw-ai p { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cw-layer { opacity: 1; }
  .cw-final.is-lit .cw-final__ring, .cw-mini.is-live .cw-browser__view img { animation: none; }
  .cw-dash__chart i { transform: none; }
  .cw-final__ring { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
