/* Transformation programme: diagnostic reading sorted by nature, then ordered chantiers (includes/visuals/chantiers.php) */
.ch { --ch-gap: 18px; --ch-link: 40px; }
.ch-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; }
.ch-t .vz-label { margin: 0; }
.ch-ts { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }

/* the reading: four columns of numbered notes */
.ch-groups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ch-gap); }
.ch-g { min-width: 0; }
.ch-gt { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--forest); font-family: var(--font-serif); font-size: 17px; line-height: 1.25; color: var(--forest); }
.ch-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ch-note { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px 8px; align-items: start; padding: 11px 12px 11px 10px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.section--paper .ch-note { background: var(--paper); }
.ch-n { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: var(--white); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.ch-nt { font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.ch-nat { display: inline-block; justify-self: start; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.ch-nat--org { background: var(--forest); color: var(--white); }
.ch-nat--meth { background: var(--mint); color: var(--forest); }
.ch-nat--form { background: var(--sage); color: var(--forest); }
.ch-nat--tool { background: var(--white); color: var(--forest); border: 1px solid var(--forest); padding-block: 1px; }
.ch-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ch-legend { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ch-sort-n { flex: 1 1 320px; min-width: 0; }

/* the ordered chantiers */
.ch-plan { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ch-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ch-link); }
.ch-c { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.section--paper .ch-c { background: var(--paper); }
.ch-c + .ch-c::before { content: ""; position: absolute; top: 34px; right: 100%; width: var(--ch-link); height: 2px; background: repeating-linear-gradient(90deg, var(--forest) 0 6px, transparent 6px 11px); }
.ch-c + .ch-c::after { content: ""; position: absolute; top: 30px; left: -7px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid var(--forest); }
.ch-needs { order: -1; margin: 0 0 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.ch-needs span { font-weight: 700; color: var(--green-text); }
.ch-ct { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.2; color: var(--forest); }
.ch-cn { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--green-text); font-family: var(--font-sans); }
.ch-treats { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.ch-treats span:first-child { margin-right: 3px; }
.ch-ref { width: 20px; height: 20px; border-radius: 50%; background: var(--forest); color: var(--white); font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
.ch-fields { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ch-f { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.4; }
.ch-f dt { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-text); padding-top: 2px; }
.ch-f dd { margin: 0; color: var(--ink); }
.ch-alone, .ch-enables { margin: 12px 0 0; padding: 8px 11px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.4; }
.ch-alone { background: var(--mint); color: var(--forest); }
.ch-alone span, .ch-enables span { font-weight: 700; }
.ch-enables { margin-top: 8px; padding: 0; color: var(--forest); }
.ch-enables span { color: var(--green-text); }
.ch-c--3 .ch-enables { color: var(--ink-2); }

/* measured on real work */
.ch-measure { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.ch-measure .vz-label { margin: 0; }
.ch-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-chips li { padding: 5px 11px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--forest); font-size: 13px; font-weight: 600; line-height: 1.3; }
.section--paper .ch-chips li { background: var(--paper); }
.ch-mn { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* intro: the four columns, the nature chips, the rule, then the chantiers one after the other with their connectors, the measures;
   the connectors keep flowing */
.js .vz-figure .ch-g, .js .vz-figure .ch-c, .js .vz-figure .ch-measure { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .ch-g--1 { transition-delay: .1s; }
.js .vz-figure .ch-g--2 { transition-delay: .22s; }
.js .vz-figure .ch-g--3 { transition-delay: .34s; }
.js .vz-figure .ch-g--4 { transition-delay: .46s; }
.js .vz-figure .ch-note .ch-nat { opacity: 0; transform: scale(.7); transform-origin: left center; transition: opacity .35s ease .8s, transform .35s cubic-bezier(.2, .7, .2, 1) .8s; }
.js .vz-figure .ch-sort { opacity: 0; transition: opacity .5s ease 1s; }
.js .vz-figure .ch-c--1 { transition-delay: 1.2s; }
.js .vz-figure .ch-c--2 { transition-delay: 1.55s; }
.js .vz-figure .ch-c--3 { transition-delay: 1.9s; }
.js .vz-figure .ch-c::before, .js .vz-figure .ch-c::after { opacity: 0; transition: opacity .4s ease; }
.js .vz-figure .ch-c--2::before, .js .vz-figure .ch-c--2::after { transition-delay: 1.85s; }
.js .vz-figure .ch-c--3::before, .js .vz-figure .ch-c--3::after { transition-delay: 2.2s; }
.js .vz-figure .ch-measure { transition-delay: 2.4s; }
.js .vz-figure.is-visible .ch-g, .js .vz-figure.is-visible .ch-c, .js .vz-figure.is-visible .ch-measure, .js .vz-figure.is-visible .ch-note .ch-nat { opacity: 1; transform: none; }
.js .vz-figure.is-visible .ch-sort, .js .vz-figure.is-visible .ch-c::before, .js .vz-figure.is-visible .ch-c::after { opacity: 1; }
.js .vz-figure.is-visible .ch-c + .ch-c::before { animation: ch-flow .7s linear 2.4s infinite; }
@keyframes ch-flow { to { background-position: 11px 0; } }

@media (max-width: 1199px) { .ch { --ch-link: 32px; } .ch-c { padding: 16px 16px 18px; } .ch-ct { font-size: 19px; } .ch-f { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* tablets: the reading on two columns */
@media (max-width: 899px) { .ch-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phones: everything stacks, the connectors turn vertical, the fields read as lines */
@media (max-width: 719px) {
  .ch { --ch-link: 28px; }
  .ch-ts { display: none; }
  .ch-groups { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ch-gt { font-size: 16px; margin-bottom: 8px; }
  .ch-notes { gap: 8px; }
  .ch-note { padding: 9px 10px 9px 9px; gap: 6px 8px; }
  .ch-sort { margin-top: 12px; }
  .ch-plan { margin-top: 24px; padding-top: 18px; }
  .ch-list { grid-template-columns: minmax(0, 1fr); }
  .ch-c { padding: 14px 14px 16px; }
  .ch-c + .ch-c::before { top: auto; right: auto; bottom: 100%; left: 50%; width: 2px; height: var(--ch-link); background: repeating-linear-gradient(180deg, var(--forest) 0 6px, transparent 6px 11px); }
  .ch-c + .ch-c::after { top: -7px; left: calc(50% - 4px); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--forest); border-bottom: 0; }
  .js .vz-figure.is-visible .ch-c + .ch-c::before { animation-name: ch-flow-v; }
  @keyframes ch-flow-v { to { background-position: 0 11px; } }
  .ch-needs { margin-bottom: 8px; }
  .ch-ct { font-size: 18px; }
  .ch-fields { margin-top: 10px; padding-top: 10px; gap: 5px; }
  .ch-f { display: block; }
  .ch-f dt { display: inline; padding: 0; font-size: 11px; }
  .ch-f dt::after { content: " : "; }
  .ch-f dd { display: inline; }
  .ch-alone { margin-top: 10px; padding: 6px 10px; }
  .ch-enables { margin-top: 6px; }
  .ch-measure { margin-top: 20px; padding-top: 16px; }
}
