/* OsmoDry — parcours isométrique. Toutes les règles sont limitées à .od-process. */

.od-process {
  --od-paper: #f5f7f6;
  --od-ink: #17354a;
  --od-blue: #0764b0;
  --od-cyan: #56c5dc;
  --od-white: #ffffff;
  --od-line: rgba(23, 53, 74, 0.14);
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 40px);
  color: var(--od-ink);
  font-family: inherit;
  overflow-wrap: break-word;
}
.od-process *,
.od-process *::before,
.od-process *::after { box-sizing: border-box; }

.od-process .od-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- En-tête ---------- */
.od-process .od-process-title {
  margin: 0 auto 0.5rem;
  max-width: 22ch;
  font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  color: var(--od-ink);
}
.od-process .od-process-intro {
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.5;
  color: rgba(23, 53, 74, 0.82);
}

/* ---------- Étapes : base mobile verticale ---------- */
.od-process .od-steps {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
}
.od-process .od-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 104px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding-bottom: 28px;
  margin: 0;
}
.od-process .od-step:last-child { padding-bottom: 8px; }

.od-process .od-step-num {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--od-blue);
  color: var(--od-white);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1;
  box-shadow: 0 0 0 5px var(--od-paper);
}

.od-process .od-step-link {
  position: absolute;
  left: 19px;
  top: 46px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--od-line);
  overflow: hidden;
}
.od-process .od-step-link > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--od-blue), var(--od-cyan));
  transform-origin: 50% 0;
  transform: scaleY(var(--od-fill, 1));
}

.od-process .od-scene {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.od-process .od-step-body {
  grid-column: 3;
  grid-row: 1;
  padding-top: 6px;
  min-width: 0;
}
.od-process .od-step-title {
  margin: 0 0 4px;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--od-ink);
}
.od-process .od-step-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--od-ink);
}
.od-process .od-step-note {
  display: inline-block;
  margin: 10px 0 0;
  padding: 7px 12px;
  border-left: 4px solid var(--od-cyan);
  border-radius: 4px 10px 10px 4px;
  background: var(--od-white);
  box-shadow: 0 6px 18px -12px rgba(23, 53, 74, 0.45);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--od-ink);
}

@media (max-width: 399px) {
  .od-process .od-step {
    grid-template-columns: 36px 64px minmax(0, 1fr);
    column-gap: 10px;
  }
  .od-process .od-step-num { width: 36px; height: 36px; font-size: 1rem; }
  .od-process .od-step-link { left: 17px; top: 42px; }
  .od-process .od-step-body { padding-top: 4px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .od-process .od-step {
    grid-template-columns: 40px 140px minmax(0, 1fr);
    column-gap: 22px;
    padding-bottom: 32px;
  }
  .od-process .od-step-body { padding-top: 14px; }
}

/* ---------- Desktop : frise horizontale ---------- */
@media (min-width: 960px) {
  .od-process .od-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .od-process .od-step {
    display: block;
    padding: 0 22px 0 0;
  }
  .od-process .od-step:last-child { padding: 0; }
  .od-process .od-step-link {
    left: 52px;
    right: 12px;
    top: 19px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .od-process .od-step-link > span {
    background: linear-gradient(90deg, var(--od-blue), var(--od-cyan));
    transform-origin: 0 50%;
    transform: scaleX(var(--od-fill, 1));
  }
  .od-process .od-scene {
    max-width: 184px;
    margin: 18px 0 14px -6px;
  }
  .od-process .od-step-body { padding: 0; }
}

/* ---------- Univers isométrique (SVG décoratif) ---------- */
.od-process .od-iso polygon,
.od-process .od-iso path,
.od-process .od-iso rect,
.od-process .od-iso ellipse {
  stroke: var(--od-ink);
  stroke-opacity: 0.14;
  stroke-width: 0.6;
  stroke-linejoin: round;
}
.od-process .od-iso .od-iso-shadow { fill: var(--od-ink); opacity: 0.07; stroke: none; }
.od-process .od-f-tile { fill: #e9f0f4; }
.od-process .od-f-top { fill: var(--od-white); }
.od-process .od-f-l { fill: #dce8ef; }
.od-process .od-f-r { fill: #bfd3e0; }
.od-process .od-f-roof,
.od-process .od-f-blue { fill: var(--od-blue); }
.od-process .od-f-door { fill: var(--od-ink); }
.od-process .od-f-win { fill: var(--od-cyan); }
.od-process .od-f-path { fill: #cdebf2; }
.od-process .od-iso .od-f-damp { fill: var(--od-cyan); fill-opacity: 0.3; stroke: none; }
.od-process .od-joint line { stroke: var(--od-ink); stroke-opacity: 0.16; stroke-width: 0.8; }
.od-process .od-lens-glass { fill: var(--od-white); fill-opacity: 0.55; stroke: var(--od-blue); stroke-width: 3; stroke-opacity: 1; }
.od-process .od-lens-handle { stroke: var(--od-ink); stroke-width: 4; stroke-linecap: round; }
.od-process .od-iso .od-dial { fill: var(--od-white); stroke: var(--od-ink); stroke-opacity: 0.6; stroke-width: 1.2; }
.od-process .od-iso .od-dial-arc { fill: none; stroke: var(--od-cyan); stroke-opacity: 1; stroke-width: 2; stroke-linecap: round; }
.od-process .od-needle {
  stroke: var(--od-blue);
  stroke-width: 2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
.od-process .od-dot { fill: var(--od-ink); }
.od-process .od-ring { fill: none; stroke: var(--od-cyan); stroke-width: 2; }
.od-process .od-iso .od-dash { fill: none; stroke: var(--od-blue); stroke-opacity: 1; stroke-width: 1.4; stroke-dasharray: 2 3; stroke-linecap: round; }
.od-process .od-line { stroke: var(--od-ink); stroke-opacity: 0.3; stroke-width: 2.2; stroke-linecap: round; }
.od-process .od-line--blue { stroke: var(--od-blue); stroke-opacity: 1; }
.od-process .od-line--cyan { stroke: var(--od-cyan); stroke-opacity: 1; }
.od-process .od-iso .od-check {
  fill: none;
  stroke: var(--od-blue);
  stroke-opacity: 1;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.od-process .od-cal-cell { fill: var(--od-cyan); }
.od-process .od-person { fill: var(--od-blue); }
.od-process .od-person--alt { fill: var(--od-cyan); }
.od-process .od-head { fill: #dce8ef; stroke: var(--od-ink); stroke-opacity: 0.14; stroke-width: 0.6; }

/* ---------- Embranchement & issues ---------- */
.od-process .od-outcomes { margin-top: clamp(12px, 3vw, 28px); }
.od-process .od-fork-label {
  margin: 0 auto 10px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--od-ink);
}
.od-process .od-fork {
  position: relative;
  height: 40px;
  margin: 0 0 6px;
}
.od-process .od-fork-stem,
.od-process .od-fork-bar,
.od-process .od-fork-drop {
  position: absolute;
  display: block;
  background: var(--od-blue);
  border-radius: 2px;
}
.od-process .od-fork-stem {
  left: calc(50% - 1px);
  top: 0;
  width: 2px;
  height: 32px;
  transform-origin: 50% 0;
}
.od-process .od-fork-stem::after,
.od-process .od-fork-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top: 8px solid var(--od-blue);
}
.od-process .od-fork-bar,
.od-process .od-fork-drop { display: none; }

.od-process .od-outcome-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.od-process .od-or {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: var(--od-paper);
  border: 2px solid var(--od-line);
  font-size: 1rem;
  font-weight: 800;
  color: var(--od-ink);
}

.od-process .od-outcome {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--od-white);
  border: 1px solid rgba(23, 53, 74, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 44px -30px rgba(23, 53, 74, 0.45);
}
.od-process .od-outcome-cond {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 20px;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--od-white);
  background: var(--od-blue);
}
.od-process .od-outcome--b .od-outcome-cond { background: var(--od-ink); }
.od-process .od-cond-icon { flex: none; width: 24px; height: 24px; }
.od-process .od-outcome--b .od-cond-icon { color: var(--od-cyan); }

.od-process .od-outcome-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 22px 24px;
}
.od-process .od-outcome-title {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--od-ink);
}
.od-process .od-outcome-hero {
  display: flex;
  align-items: center;
  height: clamp(76px, 56px + 5vw, 108px);
}
.od-process .od-outcome-art { display: block; height: 100%; width: auto; max-width: 100%; overflow: visible; }
.od-process .od-zero {
  margin: 0;
  font-size: clamp(4.25rem, 2.6rem + 6vw, 6.75rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--od-blue);
}
.od-process .od-outcome-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--od-ink);
}

@media (min-width: 720px) {
  .od-process .od-fork { height: 54px; }
  .od-process .od-fork-stem { height: 18px; }
  .od-process .od-fork-stem::after { display: none; }
  .od-process .od-fork-bar {
    display: block;
    top: 17px;
    left: calc(25% - 13px);
    right: calc(25% - 13px);
    height: 2px;
    transform-origin: 50% 50%;
  }
  .od-process .od-fork-drop {
    display: block;
    top: 17px;
    width: 2px;
    height: 30px;
    transform-origin: 50% 0;
  }
  .od-process .od-fork-drop--a { left: calc(25% - 13px); }
  .od-process .od-fork-drop--b { right: calc(25% - 13px); }

  .od-process .od-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
  .od-process .od-or {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -22px 0 0 -22px;
  }
}

/* ---------- Conditions ---------- */
.od-process .od-terms {
  max-width: 46rem;
  margin: 28px auto 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(23, 53, 74, 0.86);
}
.od-process .od-terms-link {
  margin-left: 0.25em;
  color: var(--od-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.od-process .od-terms-link:hover { color: var(--od-ink); }
.od-process .od-terms-link:focus-visible {
  outline: 3px solid var(--od-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- États de progression (ajoutés par process.js uniquement) ----------
   Le texte n'est jamais masqué : seules l'illustration et la pastille changent. */
.od-process.od-is-enhanced .od-step.is-pending .od-scene { opacity: 0.4; filter: grayscale(0.7); }
.od-process.od-is-enhanced .od-step.is-pending .od-step-num {
  background: var(--od-white);
  color: var(--od-ink);
  box-shadow: 0 0 0 5px var(--od-paper), inset 0 0 0 2px rgba(23, 53, 74, 0.28);
}
.od-process.od-is-enhanced .od-step.is-current .od-step-num {
  box-shadow: 0 0 0 5px var(--od-paper), 0 0 0 9px rgba(86, 197, 220, 0.5);
}
.od-process.od-is-enhanced .od-step.is-pending .od-bubble { opacity: 0; transform: translateY(6px); }
.od-process.od-is-enhanced .od-step.is-pending .od-lens { transform: translate(-16px, -10px); }
.od-process.od-is-enhanced .od-step.is-pending .od-needle { transform: rotate(-80deg); }
.od-process.od-is-enhanced .od-step.is-pending .od-cal-cell { fill: #dce8ef; }
.od-process.od-is-enhanced .od-step.is-pending .od-check { stroke-dashoffset: 1; }
.od-process.od-is-enhanced .od-outcomes:not(.is-in) .od-fork-stem,
.od-process.od-is-enhanced .od-outcomes:not(.is-in) .od-fork-drop { transform: scaleY(0); }
.od-process.od-is-enhanced .od-outcomes:not(.is-in) .od-fork-bar { transform: scaleX(0); }

@media (prefers-reduced-motion: no-preference) {
  .od-process.od-is-enhanced .od-scene {
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .od-process.od-is-enhanced .od-step.is-current .od-scene { transform: translateY(-4px); }
  .od-process.od-is-enhanced .od-step-num { transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.4s ease; }
  .od-process.od-is-enhanced .od-step-link > span { transition: transform 0.2s linear; }
  .od-process.od-is-enhanced .od-bubble { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .od-process.od-is-enhanced .od-bubble--2 { transition-delay: 0.35s; }
  .od-process.od-is-enhanced .od-lens { transition: transform 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); }
  .od-process.od-is-enhanced .od-needle { transition: transform 1.2s cubic-bezier(0.3, 1.35, 0.5, 1) 0.2s; }
  .od-process.od-is-enhanced .od-cal-cell { transition: fill 0.3s ease calc(var(--od-i, 0) * 120ms + 0.2s); }
  .od-process.od-is-enhanced .od-check { transition: stroke-dashoffset 0.6s ease 0.9s; }
  .od-process.od-is-enhanced .od-fork-stem { transition: transform 0.35s ease; }
  .od-process.od-is-enhanced .od-fork-bar { transition: transform 0.4s ease 0.3s; }
  .od-process.od-is-enhanced .od-fork-drop { transition: transform 0.35s ease 0.65s; }
}

@media (prefers-reduced-motion: reduce) {
  .od-process *,
  .od-process *::before,
  .od-process *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Ajustements d’intégration Codex : préserver la largeur et alléger le parcours. */
.od-process {padding:36px 0 32px;max-width:none;}
.od-process .od-process-title {font-weight:650;max-width:32ch;font-size:clamp(27px,2.8vw,36px);}
.od-process .od-step-title,.od-process .od-outcome-title {font-weight:650;}
.od-process .od-step-note,.od-process .od-fork-label,.od-process .od-outcome-cond {font-weight:600;}
.od-process .od-steps {margin-top:30px;}
.od-process .od-outcome {border-radius:8px;box-shadow:none;}
.od-process .od-outcome-body {padding:18px 20px;}
.od-process .od-outcome-hero {height:82px;}
.od-process .od-zero {font-size:88px;}
@media(max-width:719px) {
 .od-process {padding-block:26px;}
 .od-process .od-step {grid-template-columns:32px minmax(0,1fr);column-gap:14px;padding-bottom:22px;}
 .od-process .od-step-num {width:32px;height:32px;font-size:15px;}
 .od-process .od-step-link {left:15px;top:38px;}
 .od-process .od-scene {position:absolute;right:0;top:0;width:76px;max-height:60px;}
 .od-process .od-step-body {grid-column:2;padding-top:0;}
 .od-process .od-step-title {padding-right:82px;min-height:56px;font-size:18px;display:flex;align-items:center;}
 .od-process .od-step-text {font-size:16px;line-height:1.5;}
 .od-process .od-step-note {margin-top:8px;padding:7px 10px;font-weight:600;}
 .od-process .od-outcome-cond {padding:12px 14px;font-size:16px;gap:8px;}
 .od-process .od-outcome-body {padding:16px;}
 .od-process .od-outcome--a .od-outcome-hero {display:none;}
 .od-process .od-outcome-title {font-size:22px;}
 .od-process .od-zero {font-size:72px;}
 .od-process .od-outcome-hero {height:74px;}
 .od-process .od-or {width:32px;height:32px;}
 .od-process .od-fork {height:28px;}
 .od-process .od-process-intro {font-size:17px;}
}

/* Les liens des deux issues restent visibles : ils portent une information. */
.od-process.od-is-enhanced .od-outcomes:not(.is-in) .od-fork-stem,
.od-process.od-is-enhanced .od-outcomes:not(.is-in) .od-fork-drop {transform:scaleY(1);}
.od-process.od-is-enhanced .od-outcomes:not(.is-in) .od-fork-bar {transform:scaleX(1);}
.od-process .od-outcome-art path[stroke="#fff"] {stroke:#fff;stroke-opacity:1;stroke-width:2.6;}

.od-process .od-cost-label{font-size:16px;line-height:1.4;margin:0;color:var(--od-ink);}

.od-process .od-risk-note{font-size:16px;line-height:1.5;margin:0;color:var(--od-ink);}

.od-process .od-outcome-proof{font-size:16px;line-height:1.55;margin:0;color:var(--od-ink);}
