.cn-head-text { display: grid; gap: 1.5rem var(--gap); }
.cn-head-t > .over { display: block; color: var(--muted); margin-bottom: 0.75rem; }
.cn-open-text { margin-top: 0; }
.cn-head-fig { margin: clamp(2rem, 1rem + 2.5vw, 3rem) 0 0; }
.cn-head-img { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 3 / 2; }
.cn-head-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cn-head-fig figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.cn-head-fig figcaption a { color: var(--ink); }
@media (min-width: 900px) {
  .cn-head-text { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .cn-head-t { grid-column: 1 / 7; }
  .cn-open-text { grid-column: 8 / 13; }
  .cn-head-img { aspect-ratio: 21 / 9; }
  .cn-head-img img { object-position: 50% 56%; }
}

.cn-seq { display: grid; gap: 4rem; }
.cn-step { display: grid; gap: 1.5rem; }
.cn-step-t h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; }
.cn-step-t p { margin-top: 0.5rem; max-width: 40ch; }
.cn-fig { margin: 0; min-width: 0; }
.cn-fig figcaption { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.cn-fig figcaption a { color: var(--ink); }
.cn-sheet { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper); border: 1px solid var(--rule); padding: 0.75rem; cursor: zoom-in; }
.cn-sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cn-sheet.is-photo { padding: 0; background: var(--stone); }
.cn-sheet.is-photo img { object-fit: cover; }
.cn-sheet:hover { border-color: var(--ink); }
.cn-sheet:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }
@media (min-width: 900px) {
  .cn-seq { gap: 5rem; }
  .cn-step { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 0; align-items: start; }
  .cn-fig { grid-column: 1 / 7; grid-row: 1; }
  .cn-step-t { grid-column: 8 / 13; grid-row: 1; }
  .cn-sheet { aspect-ratio: 16 / 9; padding: 1.5rem; }
  .cn-sheet.is-photo { padding: 0; }
}

.cn { display: grid; gap: 3rem; }
.cn-form { display: grid; gap: 2.5rem; }
.cn-form[hidden], .cn-selon[hidden], .cn-r[hidden] { display: none; }
.cn .am-fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.cn .am-leg { display: block; padding: 0; margin-bottom: 0.75rem; font-family: var(--display); font-weight: 500; font-size: 1rem; line-height: 1.5; }
.cn .am-leg small { font-family: var(--sans); font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.cn-qui-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.cn-tile .dp-svg { height: 4rem; }
.cn-tile .dp-tile-n small { font-family: var(--sans); font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.cn-opts { display: flex; flex-wrap: wrap; gap: 0 2rem; border-top: 1px solid var(--ink); padding-top: 0.25rem; }

.cn-val { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 2.5rem + 2vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cn-val small { font-size: 0.4em; font-weight: 400; letter-spacing: 0; margin-left: 0.25em; }
.cn-jg { margin-top: 1.5rem; }
.cn-jg .jg-row { grid-template-columns: minmax(0, 1fr); }
.cn-jg .jg-at { font-family: var(--display); font-weight: 500; }
.cn-seg-soc, .cn-at-soc { display: none; }
.cn[data-qui="societe"] .cn-seg-soc, .cn[data-qui="societe"] .cn-at-soc { display: block; }
.cn[data-qui="societe"] .cn-seg-moi, .cn[data-qui="societe"] .cn-seg-archi,
.cn[data-qui="societe"] .cn-at-moi, .cn[data-qui="societe"] .cn-at-archi { display: none; }

.cn-range { position: absolute; left: -0.75rem; width: calc(100% + 1.5rem); bottom: -0.875rem; height: 2.75rem; margin: 0; padding: 0;
  background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.cn-range::-webkit-slider-runnable-track { height: 2.75rem; background: transparent; border: 0; }
.cn-range::-moz-range-track { height: 2.75rem; background: transparent; border: 0; }
.cn-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 1.5rem; height: 1.5rem; margin-top: 0.625rem;
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 12px var(--ink); }
.cn-range::-moz-range-thumb { width: 1.5rem; height: 1.5rem; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 12px var(--ink); }
.cn-range:focus { outline: 0; }
.cn-range:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }
.cn .cn-hint { margin-top: 2rem; padding: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); border: 0; }

.cn-selon { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 2rem); line-height: 1.15; }
.cn-rules { display: grid; border-bottom: 1px solid var(--rule); }
.cn-r { position: relative; display: grid; gap: 0.25rem; padding: 1.25rem 0 1.25rem 1.5rem; border-top: 1px solid var(--rule); }
.cn-r::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 1px; background: var(--ink); }
.cn-r-moi::before { width: 4px; }
.cn-r-archi-150::before, .cn-r-archi-societe::before { width: 0; background: none; border-left: 2px dashed var(--ink); }
.cn-r-sol::before { width: 8px; background: repeating-linear-gradient(135deg, var(--ink) 0 1px, transparent 1px 4px); box-shadow: inset 0 0 0 1px var(--ink); }
.cn-r-sol-nsp::before, .cn-r-doute::before { width: 0; background: none; border-left: 1px dashed var(--ink); }
.cn-r dt { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.cn-r dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; max-width: 52ch; }
.cn-r dd span { display: block; }
.cn-r dd b { display: block; margin-bottom: 0.25rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; }
.cn-r dd b { text-wrap: balance; }
.cn-r dd .link { display: table; margin-top: 0.25rem; padding-block: 0.5rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.cn-coupe { margin: 0; padding: 1.5rem 1rem 1rem; }
.cn-coupe .cn-svg { max-height: 18rem; font-size: 8px; }
.cn-coupe .dp-dz { margin-top: 1rem; justify-self: start; }
.cn-svg .cn-fond { fill: var(--ink); stroke: none; }
.cn-svg .cn-arg { fill: var(--paper); stroke-width: 1.5; }
.cn-svg .cn-dash { stroke-width: 1; }
.cn-svg .cn-m2 { font-size: 8px; }
.cn-svg .cn-lab-tn { font-size: 6px; }
.cn-svg .cn-lab-nsp { display: none; }
.cn-p { transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.cn-arg, .cn-dash { transition: stroke-opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.cn-coupe[data-arg="nsp"] .cn-arg { stroke-dasharray: 4 3; stroke-width: 1; }
.cn-coupe[data-arg="nsp"] .cn-dash { stroke-opacity: 0.3; }
.cn-coupe[data-arg="nsp"] .cn-lab-oui { display: none; }
.cn-coupe[data-arg="nsp"] .cn-lab-nsp { display: inline; }
.cn-coupe[data-arg="non"] .cn-p-arg { opacity: 0; }
.cn-coupe[data-sp="non"] .cn-p-sp { opacity: 0; }

@media (min-width: 900px) {
  .cn { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; align-items: start; }
  .cn-form { grid-column: 1 / 7; grid-row: 1; }
  .cn-coupe { grid-column: 1 / 7; grid-row: 2; padding: 2rem 1.5rem 1.5rem; }
  .cn-coupe .cn-svg { font-size: 7px; }
  .cn-svg .cn-m2 { font-size: 7px; }
  .cn-out { grid-column: 8 / 13; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 2rem); }
  .cn:not(.is-live) .cn-coupe { grid-row: 1; }
}

@media (min-width: 900px) {
  .pr-faq .dp-src dl > div { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .pr-faq .dp-src dt { grid-column: 1 / 7; }
  .pr-faq .dp-src dd { grid-column: 8 / 13; }
}

.zoom { border: 0; padding: 0; max-width: 96vw; max-height: 94vh; background: #fff; color: var(--ink); }
.zoom::backdrop { background: rgba(5, 4, 9, 0.88); }
.zoom img { display: block; width: auto; height: auto; max-width: 96vw; max-height: calc(94vh - 3rem); object-fit: contain; }
.zoom p { margin: 0; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; }
.zoom button { appearance: none; background: none; border: 0; padding: 0; min-height: 3rem; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.zoom button:focus-visible { outline: 2px solid var(--ink); outline-offset: 0.25rem; }
html.zoom-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cn-p, .cn-arg, .cn-dash { transition: none; }
}
