/* Korix Studio · Méthode · page layout, ported from the Methode board's own stylesheet (Methode.dc.html).
   Everything above the last section is the board's CSS unchanged, minus its canvas-frame guard. The last
   section is for the live page only (the page without JavaScript). */
body{margin:0}

/* ==== Méthode: page layout only. Tokens and components come from korix.css ==== */

/* -- section heads (h2 or p styled as the mono counter line) -- */
.m-sh { display: flex; align-items: baseline; gap: 14px; }

/* -- 1. opener: the construction drawing (épure) of the lunette -- */
.m-open-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 0 minmax(0, 1fr); aspect-ratio: 1440 / 860;
}
.m-open-top { grid-row: 1; align-self: end; position: relative; z-index: 1; display: grid; gap: 40px; padding-bottom: 40px; }
.m-open-top .kx-display { max-width: 660px; }
.m-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.m-open-axis { grid-row: 2; position: relative; }
.m-axis-line { position: absolute; left: 0; right: 0; top: 0; }
.m-count-open { animation: kx-fade 420ms linear 1240ms both; }
.m-open-bot { grid-row: 3; align-self: start; position: relative; z-index: 1; display: grid; gap: 24px; padding-top: 40px; max-width: 30em; }
.m-replay { position: absolute; right: var(--kx-margin); bottom: 24px; z-index: 2; animation: kx-fade 420ms linear 1340ms both; }
/* the control that was just pressed stays visible (and keeps its focus ring) while the drawing replays */
@media (prefers-reduced-motion: no-preference) { .m-open.kx-noanim .m-replay { animation: kx-fade 420ms linear 1340ms both !important; } }

/* the drawing starts 240 ms late so it begins as the caseback opens; everything is at rest by 1.76 s */
.m-ep { position: absolute; top: 0; right: 0; width: calc(100% * 800 / 1440); height: 100%; overflow: visible; pointer-events: none; --m-sw: 1; --m-t0: 240ms; }
.m-ep line, .m-ep circle, .m-ep path { fill: none; stroke: var(--kx-line); stroke-width: var(--m-sw); }
.m-ep .m-faint { opacity: .72; }
.m-ep .m-d { stroke-dasharray: 1 1; animation: m-dash var(--t, 1100ms) var(--kx-e-index) both; animation-delay: calc(var(--m-t0) + var(--d, 0ms)); }
.m-ep .m-ax-l { display: none; }
.m-ep .m-ray1 { stroke: var(--kx-accent); stroke-width: calc(var(--m-sw) * 1.5); animation-duration: 900ms; }
.m-ep .m-tk { stroke: var(--kx-line-strong); transform-box: fill-box; transform-origin: 50% 0; animation: kx-index 440ms var(--kx-e-index) both; animation-delay: calc(var(--m-t0) + 720ms + var(--i, 0) * 20ms); }
.m-ep .m-tk-maj { stroke: var(--kx-accent); stroke-width: calc(var(--m-sw) * 1.5); }
.m-ep .m-node { fill: var(--kx-bg); stroke: var(--kx-line-strong); transform-box: fill-box; transform-origin: 50% 50%; animation: kx-pop 320ms var(--kx-e-out) both; animation-delay: calc(var(--m-t0) + var(--d, 0ms)); }
.m-ep .m-node-on { fill: var(--kx-accent); stroke: var(--kx-accent); }
.m-ep .m-rubis { fill: var(--kx-rubis); stroke: none; transform-box: fill-box; transform-origin: 50% 50%; animation: kx-pop 320ms var(--kx-e-out) both; animation-delay: calc(var(--m-t0) + var(--d, 0ms)); }
.m-ep .m-lbl { font-family: var(--kx-mono); font-size: 11px; letter-spacing: .06em; fill: var(--kx-fg-2); text-anchor: middle; dominant-baseline: central; animation: kx-fade 360ms linear both; animation-delay: calc(var(--m-t0) + var(--d, 0ms)); }
@keyframes m-dash { from { stroke-dashoffset: 1; } }

/* -- 2. process: the lunette on a plaque band -- */
/* the device already holds its own room above and below the ring (the labels travel there), so the band padding stays at 64 */
.m-proc { background-color: var(--kx-surface); padding-block: var(--kx-s8); }
/* steps 22deg apart (not 24): five steps then span -88 to +88deg, so every label stays inside the right half.
   Bezel ticks every 5.5deg (4 per step) and a longer tick on each step, so the ring always comes to rest on a tick.
   The pattern starts at 340deg: its seam (360 is not a multiple of 5.5 or 22) sits in the cropped left half. */
.m-dial .kx-lunette-ring::before { background: repeating-conic-gradient(from 339.85deg, var(--kx-line-strong) 0 .3deg, transparent .3deg 5.5deg); }
.m-majors { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: .8;
  background: repeating-conic-gradient(from 339.8deg, var(--kx-line-strong) 0 .4deg, transparent .4deg 22deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 13px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 13px)); }
.m-proc .kx-section-head { margin-bottom: 0; }
/* ring radius, pivot and panel start: the pivot sits 60 px from the page edge, the panel on column 5 (the page's
   first content line, shared with the terms, the questions and the principles). The pivot is low enough that the
   upper labels (Écoute at -88deg on step 05) clear the section head, and the band is tall enough for the lower ones. */
.m-dev { --m-r: 290px; --m-cx: 60px; --m-cy: 412px; --m-h: 800px; --m-pl: 512px;
  position: relative; max-width: 1440px; margin-inline: auto; height: var(--m-h); overflow-x: clip;
  display: grid; grid-template-columns: var(--m-pl) minmax(0, 1fr); padding-right: var(--kx-margin); }
.m-dial { position: relative; grid-column: 1; }
.m-dial .kx-lunette { --kx-r: var(--m-r); --kx-gap: 22deg; position: absolute; left: calc(var(--m-cx) - var(--m-r)); top: calc(var(--m-cy) - var(--m-r)); }
.m-hand { position: absolute; left: var(--m-cx); top: calc(var(--m-cy) - .75px); width: calc(var(--m-r) - 12px); height: 1.5px; background: var(--kx-accent); }
.m-axis2 { position: absolute; left: calc(var(--m-cx) + var(--m-r)); right: var(--kx-margin); top: calc(var(--m-cy) - .5px); height: 1px; background: var(--kx-line); }
.m-pivot { position: absolute; left: calc(var(--m-cx) - 7px); top: calc(var(--m-cy) - 7px); width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--kx-accent); background: var(--kx-surface); }
.m-pivot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--kx-accent); }
.m-dial .kx-lunette-label {
  padding: 15px 10px; opacity: 1; color: var(--kx-fg-2); cursor: pointer;
  background: linear-gradient(var(--kx-surface), var(--kx-surface)) 0 50% / 100% 16px no-repeat;
}
.m-dial .kx-lunette-label.is-far { opacity: .9; }
.m-dial .kx-lunette-label:hover { color: var(--kx-fg); }
.m-dial .kx-lunette-label.is-active { color: var(--kx-fg); font-weight: 500; }
/* hover or keyboard focus: a short acier tick draws toward the bezel, as if the hand were about to read it */
.m-dial .kx-lunette-label::before { content: ""; position: absolute; left: -16px; top: 50%; width: 12px; height: 1px; background: var(--kx-accent);
  transform: scaleX(0); transform-origin: right center; transition: transform var(--kx-d-s) var(--kx-e-out); }
.m-dial .kx-lunette-label:not(.is-active):hover::before, .m-dial .kx-lunette-label:not(.is-active):focus-visible::before { transform: scaleX(1); }

.m-panel { grid-column: 2; position: relative; display: grid; grid-template-rows: var(--m-cy) 0 minmax(0, 1fr); }
.m-ptop { grid-row: 1; align-self: end; display: grid; gap: 22px; padding-bottom: 30px; }
.m-paxis { grid-row: 2; }
.m-pbot { grid-row: 3; align-self: start; display: grid; gap: 48px; padding-top: 32px; }

.m-count { display: inline-flex; align-items: flex-start; gap: .5em; }
.m-count-win { display: block; height: 1.4em; overflow: hidden; }
.m-count-strip { display: block; color: var(--kx-fg); transform: translateY(calc(var(--s, 0) * -1.4em)); transition: transform var(--kx-d-l) var(--kx-e-bezel); }
.m-count-strip > span { display: block; height: 1.4em; }

.m-names { display: grid; }
/* the name window: open just above the accents, closed exactly on the axis hairline below (30 px) */
.m-name { grid-area: 1 / 1; clip-path: inset(-.15em -.2em -30px -.1em); visibility: hidden; transition: visibility 0s linear var(--kx-d-l); }
.m-name-in { display: block; transform: translateY(134%); transition: transform var(--kx-d-l) var(--kx-e-bezel); }
.m-name.is-prev .m-name-in { transform: translateY(-134%); }
.m-name.is-active { visibility: visible; transition: visibility 0s; }
.m-name.is-active .m-name-in { transform: none; }

/* the panel spans 8 columns of the page grid: "But" on 3, "Vous recevez" on 5, starting on column 8 like the terms */
.m-pcols { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 32px var(--kx-gutter); }
.m-pcol { display: grid; gap: 12px; align-content: start; grid-column: 1 / span 3; }
.m-pcol + .m-pcol { grid-column: 4 / span 5; }
.m-stack { display: grid; }
.m-txt { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity 240ms linear, transform 600ms var(--kx-e-out), visibility 0s linear 600ms; }
.m-txt.is-prev { transform: translateY(-14px); }
.m-txt.is-active { opacity: 1; transform: none; visibility: visible;
  transition: opacity 520ms linear 260ms, transform 760ms var(--kx-e-out) 140ms, visibility 0s; }

.m-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.m-prev .m-arrow-l { transition: transform var(--kx-d-s) var(--kx-e-out); }
.m-prev:hover .m-arrow-l { transform: translateX(-3px); }
.m-nav .kx-btn[disabled]:hover { border-color: var(--kx-line-strong); }
.m-nav .kx-btn[disabled]:hover .kx-arrow { transform: none; }

/* narrow screens: a vertical numbered list with a progress rail */
.m-list { display: none; }
.m-li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 0 36px 42px; }
.m-li-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 28px; }
.m-li-rail::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: -22px; width: 9px;
  background:
    linear-gradient(var(--kx-line-strong), var(--kx-line-strong)) 0 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--kx-line-strong) 0 1px, transparent 1px 8px) 0 0 / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--kx-line-strong) 0 1px, transparent 1px 40px) 0 0 / 9px 100% no-repeat;
  opacity: .7; }
.m-li-fill { position: absolute; left: 5.5px; top: 22px; bottom: -22px; width: 2px; background: var(--kx-accent); transform: scaleY(0); transform-origin: center top; transition: transform 720ms var(--kx-e-bezel); }
.m-li.is-done .m-li-fill { transform: scaleY(1); }
.m-li:last-child .m-li-rail::before, .m-li:last-child .m-li-fill { display: none; }
.m-li-dot { position: absolute; left: 1px; top: 16.5px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--kx-line-strong); background: var(--kx-surface);
  transition: background-color var(--kx-d-m) var(--kx-e-out), border-color var(--kx-d-m) var(--kx-e-out); }
.m-li.is-done .m-li-dot, .m-li.is-active .m-li-dot { background: var(--kx-accent); border-color: var(--kx-accent); }
.m-li.is-active .m-li-dot { outline: 1px solid var(--kx-accent); outline-offset: 3px; }
.m-li-btn { display: flex; align-items: baseline; gap: 14px; min-height: 44px; padding-top: 6px; text-align: left; color: var(--kx-fg); }
.m-li-btn .kx-idx { color: var(--kx-fg-2); }
.m-li.is-active .m-li-btn .kx-idx { color: var(--kx-fg); }
.m-li-name { font-family: var(--kx-serif); font-weight: 300; font-size: var(--kx-t-h2); line-height: 1.06; letter-spacing: -.014em; }
.m-li-body { display: grid; gap: 18px; padding-top: 16px; }
.m-li-part { display: grid; gap: 6px; }

/* -- sections after the band: one rhythm -- */
.m-sec { padding-block: calc(var(--kx-section) * .6); }
.m-sec-first { padding-top: var(--kx-section); }

/* -- 3. engagements: a terms ledger on the 12 column grid (right part = 8 columns) -- */
.m-sticky { position: sticky; top: 32px; }
.m-terms { border-top: 1px solid var(--kx-line); }
.m-term { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px var(--kx-gutter); align-items: baseline; padding-block: 26px 30px; border-bottom: 1px solid var(--kx-line); }
.m-term dt { grid-column: 1 / span 3; color: var(--kx-fg-2); transition: color var(--kx-d-m) var(--kx-e-out); }
.m-term dd { grid-column: 4 / span 5; margin: 0; }
.m-term:hover dt { color: var(--kx-fg); }

/* -- 4. principles: large serif rows numbered / 01 -- */
.m-pri-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--kx-gutter); align-items: baseline; padding-block: 34px 38px; border-bottom: 1px solid var(--kx-line); }
.m-pri-row:first-child { padding-top: 6px; }
.m-pri-t { grid-column: 1 / span 7; font-family: var(--kx-serif); font-weight: 300; font-size: var(--kx-t-h2); line-height: 1.06; letter-spacing: -.014em; }
.m-pri-l { grid-column: 8 / span 4; max-width: 26em; }
.m-pri-i { grid-column: 12; justify-self: end; color: var(--kx-fg-2); }

/* -- 5. questions: a reading measure for the answers, a quiet contact line under the title -- */
.m-faq .kx-acc-body { max-width: calc(36em + 100px); }
/* the index sits on the first baseline of its question, like the keys of the terms and the principle numbers;
   the question keeps a one-line box as tall as the row (32 px) so the plus stays centred on a single line */
.m-faq .kx-acc-btn .kx-idx, .m-faq .kx-acc-btn > span:nth-child(2) { align-self: baseline; }
.m-faq .kx-acc-btn .kx-idx { padding-top: 0; }
.m-faq .kx-acc-btn > span:nth-child(2) { padding-block: max(0px, calc((32px - 1.28em) / 2)); }
.m-faq-side { display: grid; gap: var(--kx-s7); justify-items: start; }
.m-faq-contact { display: grid; gap: 10px; justify-items: start; }

/* -- 6. closing: one sentence that carries the action as an inline pill. The footer right below repeats the
   statement + button + trust line pattern, so the closing must not mirror it. -- */
.m-cta-in { padding-top: var(--kx-s7); border-top: 1px solid var(--kx-line); }
.m-cta-line { font-size: var(--kx-t-h1); line-height: 1.18; letter-spacing: -.018em; }
.m-cta-pill { min-height: clamp(48px, 44px + .5vw, 56px); padding: 0 clamp(20px, 16px + .6vw, 26px); margin-left: .28em;
  font-size: clamp(15px, 14.4px + .15vw, 16px); vertical-align: .3em; }
@media (max-width: 759.98px) { .m-cta-pill { display: flex; width: fit-content; margin: 28px 0 0; } }
@supports (animation-timeline: view()) {
  .m-cta .kx-mark { animation: kx-mark-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
}

/* -- responsive -- */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  /* the 1440/860 ratio leaves no room above the title between 1100 and 1280: a fixed height keeps the axis centred */
  .m-open-in { aspect-ratio: auto; height: 780px; }
}
@media (max-width: 1279.98px) {
  .m-dev { --m-r: 240px; --m-cx: 56px; --m-cy: 362px; --m-h: 720px; --m-pl: 480px; }
  .m-pcols { grid-template-columns: minmax(0, 1fr); }
  .m-pcol, .m-pcol + .m-pcol { grid-column: 1; }
}
@media (max-width: 1099.98px) {
  .m-open-in { aspect-ratio: auto; display: flex; flex-direction: column; padding-block: 8px 56px; }
  .m-ep { position: relative; order: -1; width: 100%; max-width: 460px; height: auto; align-self: flex-end; --m-sw: 1.6; }
  .m-ep .m-ax-l { display: inline; }
  .m-ep .m-lbl { display: none; }
  .m-open-top { align-self: stretch; padding-bottom: 40px; }
  .m-open-axis { height: 0; }
  .m-open-bot { align-self: stretch; padding-top: 32px; }
  .m-replay { position: static; align-self: flex-start; margin-top: 16px; }
  .m-term dt, .m-term dd { grid-column: 1 / -1; }
  .m-pri-row { grid-template-columns: minmax(0, 1fr) auto; }
  .m-pri-t, .m-pri-l { grid-column: 1; }
  .m-pri-i { grid-row: 1; grid-column: 2; }
}
@media (max-width: 899.98px) {
  .m-proc .kx-section-head { margin-bottom: var(--kx-s6); }
  .m-dev { display: none; }
  .m-list { display: block; }
}
@media (max-width: 759.98px) {
  .m-ep { --m-sw: 1.9; width: 118%; max-width: none; margin-left: -18%; align-self: flex-start; }
  .m-pri-row { padding-block: 26px 30px; }
}

/* canvas frame: scroll-linked effects show their finished state */
/* canvas-frame guard removed for the live site */

/* -- live site only: the page without JavaScript (kx-boot.js puts .js on <html> before the first paint) --
   The lunette and the questions need the module to change step or open an answer. Without it, the steps read
   as the numbered list (the narrow-screen layout, every step written out) at every width, every answer shows,
   and the controls that would do nothing lose their pointer and the plus sign. "Rejouer" is .kx-js-only. */
html:not(.js) .m-proc .kx-section-head { margin-bottom: var(--kx-s6); }
html:not(.js) .m-dev { display: none; }
html:not(.js) .m-list { display: block; }
/* where the lunette would stand, the list keeps a reading measure (the rail's 42 px plus 36em of text) */
@media (min-width: 900px) { html:not(.js) .m-list { max-width: calc(var(--kx-measure) + 42px); } }
html:not(.js) .m-li-btn, html:not(.js) .m-faq .kx-acc-btn { cursor: default; }
html:not(.js) .m-faq .kx-acc-panel { grid-template-rows: 1fr; visibility: visible; }
html:not(.js) .m-faq .kx-acc-icon { visibility: hidden; }
/* every answer is open, so every index takes the open colour (korix.css 5.10, .kx-acc.is-open) */
html:not(.js) .m-faq .kx-acc-btn .kx-idx { color: var(--kx-fg); }
/* without JavaScript the header's Menu button steps aside on every page: korix.css section 9 */
