/* Norma'Klinck : les obligations d'un centre de radiothérapie (build/nk_obligations.py, mise en page du 21/10) :
   accroche, parcours patient en ligne de métro (7 stations), puis 3 bandes horizontales basses. */
.obl { position: relative; z-index: 2; max-width: var(--max, 1320px); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--pad, 24px) 0; }
.obl__kick { display: inline-block; margin: 0; padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--k-green) 12%, #fff);
  color: #2c6d61; font: 600 14px/1 var(--sans, sans-serif); letter-spacing: .04em; text-transform: uppercase; }
.obl__t { margin: 20px 0 0; max-width: 18ch; font: 600 clamp(40px, 5.6vw, 82px)/1 var(--sans, sans-serif); letter-spacing: -.04em; color: var(--ink, #10201d); }
.obl__lead { margin: 22px 0 0; max-width: 62ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--ink-2, #45534f); }
.obl .kp { width: 58px; height: 58px; flex: none; }
.obl__k { margin: 0; font: 600 13px/1.2 var(--sans, sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.obl h3 { margin: 6px 0 0; font: 600 clamp(21px, 1.8vw, 26px)/1.15 var(--serif, serif); letter-spacing: -.015em; color: var(--ink, #10201d); }

/* parcours : ligne de métro */
.obl__metro { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(16,32,29,.05), 0 24px 50px -30px rgba(16,32,29,.25); }
.obl__mh { display: flex; gap: 18px; align-items: center; }
.obl__ms { margin: 6px 0 0; font-size: 15px; color: var(--ink-2, #45534f); }
.obl__line { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.obl__line::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 19px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--k-green), var(--k-teal), var(--k-orange), var(--k-red), var(--k-violet)); opacity: .55; }
.obl__line li { position: relative; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 0 6px; }
.obl__line b { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  box-shadow: inset 0 0 0 4px var(--c), 0 6px 14px -6px rgba(16,32,29,.3); font: 600 14px var(--mono, monospace); color: var(--ink, #10201d); }
.obl__line span { font-size: 14px; line-height: 1.35; color: var(--ink-2, #45534f); max-width: 16ch; }

/* les 3 autres obligations : bandes horizontales */
.obl__bs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.obl__b { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(0, 2fr) auto; gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 3vw, 40px); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(16,32,29,.05), 0 18px 40px -28px rgba(16,32,29,.22); }
.obl__b::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 42%); pointer-events: none; }
.obl__h { position: relative; display: flex; gap: 16px; align-items: center; }
.obl__p { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px; }
.obl__p li { position: relative; padding-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2, #45534f); }
.obl__p li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 3px; border-radius: 2px; background: var(--c); }
.obl__a { position: relative; white-space: nowrap; font-weight: 600; font-size: 15px; color: var(--ink, #10201d); text-decoration: none; }
.obl__a::after { content: " →"; color: var(--c); }

@media (max-width: 1000px) {
  .obl__b { grid-template-columns: 1fr; gap: 16px; }
  .obl__line { grid-template-columns: 1fr; gap: 14px; }
  .obl__line::before { left: 19px; right: auto; top: 22px; bottom: 22px; width: 6px; height: auto;
    background: linear-gradient(180deg, var(--k-green), var(--k-teal), var(--k-orange), var(--k-red), var(--k-violet)); }
  .obl__line li { grid-template-columns: 44px 1fr; justify-items: start; text-align: left; align-items: center; padding: 0; }
  .obl__line span { max-width: none; }
}
@media (max-width: 700px) { .obl__p { grid-auto-flow: row; gap: 12px; } }

/* accroche dans l'encart Norma'Klinck de l'accueil */
.nkt__hook { display: block; margin: 18px 0 4px; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--k-green) 10%, #fff); color: var(--ink, #10201d);
  font: 600 clamp(16px, 1.3vw, 19px)/1.4 var(--sans, sans-serif); text-decoration: none; box-shadow: 0 10px 26px -18px rgba(63,136,123,.6); transition: transform .3s; }
.nkt__hook:hover { transform: translateY(-2px); }
.nkt__hook b { display: block; margin-bottom: 4px; font: 600 12.5px/1 var(--sans, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #2c6d61; }
.nkt__hook::after { content: " →"; }

/* logo Norma'Klinck en tête du héro de la page (logo de la charte, sans la signature) */
.hero__logo { display: block; width: clamp(240px, 26vw, 380px); height: auto; margin: 0 0 22px; }

/* carrousel des familles (hf/nk-carousel) : à même la page, comme sur l'accueil */
.nkcar { max-width: var(--max, 1320px); margin: clamp(30px, 4vw, 60px) auto 0; padding: 0 var(--pad, 24px); }
.nkcar .pcar { margin: 0 auto; }
.nkcar .pcar { max-width: 1500px; aspect-ratio: 1920 / 680; overflow: hidden; }
.nkcar .pcar video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .nkcar { padding: 0; } .nkcar .pcar { aspect-ratio: 1 / .9; } }

/* tableau de bord « Pilotage qualité · CGR » (21/10) : donut « Score du risque » et courbes mensuelles en motion design, sans chiffres.
   Animation en boucle de 10 s, lancée quand le bloc entre à l'écran (.is-in posé par le script du bloc). */
.nkdb { --dur: 10s; margin-top: 18px; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(16,32,29,.05), 0 24px 50px -30px rgba(16,32,29,.25); }
.nkdb__hd { display: grid; grid-template-columns: auto minmax(0, 46ch); justify-content: space-between; gap: 12px 40px; align-items: end; }
.nkdb__hd p:not(.obl__k) { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2, #45534f); }
.nkdb__kpi { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nkdb__kpi li { padding: 16px 18px; border-radius: 16px; background: #f6f7f5; display: grid; gap: 12px; }
.nkdb__kpi span { font: 600 14px/1.2 var(--sans, sans-serif); color: var(--ink-2, #45534f); }
.nkdb__kpi i { display: block; height: 10px; border-radius: 5px; background: var(--k-green); width: 0; }
.nkdb__kpi li:nth-child(1) i { --w: 92%; } .nkdb__kpi li:nth-child(2) i { --w: 74%; background: var(--k-teal); }
.nkdb__kpi li:nth-child(3) i { --w: 58%; background: var(--k-violet); } .nkdb__kpi li:nth-child(4) i { --w: 16%; background: var(--k-red); }
.nkdb__g { margin-top: 14px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 14px; }
.nkdb__c { margin: 0; padding: 20px 22px 18px; border-radius: 20px; background: #f6f7f5; display: grid; align-content: start; gap: 14px; }
.nkdb__c figcaption { font: 600 15px/1.2 var(--sans, sans-serif); color: var(--ink, #10201d); }
.nkdb__leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2, #45534f); }
.nkdb__leg li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; background: var(--c); }
/* donut */
.nkd { position: relative; width: min(100%, 230px); justify-self: center; }
.nkd svg { display: block; width: 100%; height: auto; overflow: visible; }
.nkd__bg { fill: none; stroke: #e6e9e7; stroke-width: 26; }
.nkd__s { fill: none; stroke: var(--c); stroke-width: 26; transform-origin: 100px 100px; stroke-dashoffset: var(--p); }
.nkd span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 600 13px/1.3 var(--sans, sans-serif); color: var(--ink-3, #5d6966); }
/* courbes */
.nkc { display: block; width: 100%; height: auto; overflow: visible; }
.nkc__g line { stroke: #e3e7e5; stroke-width: 1.5; stroke-dasharray: 4 6; }
.nkc__x text { font: 500 16px var(--mono, monospace); fill: var(--ink-3, #5d6966); text-anchor: middle; }
.nkc__l { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.nkc__a { fill: var(--c); opacity: 0; }
.nkc__p { fill: #fff; stroke: var(--c); stroke-width: 4; offset-distance: 0%; opacity: 0; }
.nkdb.is-in .nkdb__kpi i { animation: nkK var(--dur) cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * .12s) infinite; }
.nkdb__kpi li { --i: 0; }
.nkdb.is-in .nkd__s { animation: nkD var(--dur) cubic-bezier(.3,.7,.2,1) calc(.3s + var(--i) * .28s) infinite backwards; }
.nkdb.is-in .nkc__l { animation: nkL var(--dur) cubic-bezier(.45,.1,.3,1) calc(.5s + var(--i) * .35s) infinite backwards; }
.nkdb.is-in .nkc__a { animation: nkA var(--dur) ease calc(.5s + var(--i) * .35s) infinite backwards; }
.nkdb.is-in .nkc__p { animation: nkP var(--dur) cubic-bezier(.45,.1,.3,1) calc(.5s + var(--i) * .35s) infinite backwards; }
@keyframes nkK { 0% { width: 0; } 16%, 88% { width: var(--w); } 100% { width: 0; } }
@keyframes nkD { 0% { stroke-dashoffset: var(--p); opacity: 1; } 18%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes nkL { 0% { stroke-dashoffset: 100; opacity: 1; } 30%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes nkA { 0%, 18% { opacity: 0; } 34%, 86% { opacity: .1; } 100% { opacity: 0; } }
@keyframes nkP { 0% { offset-distance: 0%; opacity: 1; } 30%, 86% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (max-width: 900px) { .nkdb__hd, .nkdb__g { grid-template-columns: 1fr; } .nkdb__kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nkc__x text { font-size: 24px; } .nkc__l { stroke-width: 6; } }
@media (prefers-reduced-motion: reduce) {
  .nkdb .nkdb__kpi i, .nkdb .nkd__s, .nkdb .nkc__l, .nkdb .nkc__a, .nkdb .nkc__p { animation: none !important; }
  .nkdb__kpi i { width: var(--w); } .nkd__s { stroke-dashoffset: 0; } .nkc__l { stroke-dashoffset: 0; } .nkc__a { opacity: .12; } .nkc__p { offset-distance: 100%; opacity: 1; }
}
.nkdb { color: var(--ink, #10201d); } .nkdb h3 { margin: 6px 0 0; font: 600 clamp(21px, 1.8vw, 26px)/1.15 var(--serif, serif); letter-spacing: -.015em; color: var(--ink, #10201d); }

/* accueil (21/10) : carte un peu moins large, texte à côté */
.nkdbw { max-width: var(--max, 1320px); margin: clamp(40px, 5vw, 80px) auto 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.nkdbw .nkdb { margin: 0; }
.nkdb__hd--s { display: block; }
.nkdbw__txt h3 { margin: 8px 0 0; font: 600 clamp(26px, 2.6vw, 38px)/1.1 var(--serif, serif); letter-spacing: -.02em; color: var(--ink, #10201d); }
.nkdbw__txt > p:not(.obl__k) { margin: 16px 0 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--ink-2, #45534f); }
.nkdbw__txt ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.nkdbw__txt li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2, #45534f); }
.nkdbw__txt li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--k-violet); opacity: .75; }
.nkdbw__a { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 15.5px; color: var(--ink, #10201d); text-decoration: none; }
.nkdbw__a::after { content: " →"; color: var(--k-violet); }
@media (max-width: 1100px) { .nkdbw { grid-template-columns: 1fr; } .nkdbw__txt { order: -1; } }
