/* =========================================================
   KADRO TALENTS — sections.css
   Hero · dossier candidat · ce que nous vérifions · conviction
   engagements chiffrés · dossier (trio) · méthode horizontale
   ========================================================= */

/* ---------- HERO ---------- */
.hero {
  --overlap: clamp(150px, 17vw, 250px);
  position: relative; isolation: isolate; color: #fff;
  padding-top: calc(var(--header-h) + clamp(64px, 9vw, 132px));
}
.hero__field {
  position: absolute; inset: 0 0 var(--overlap) 0; z-index: -1; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-2) 0%, var(--navy) 50%, var(--navy-deep) 100%);
}
/* Cadres concentriques qui s'élargissent lentement (motif du logo) */
.hero__frames { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.hero__frames i { position: absolute; left: 0; top: 0; width: min(1180px, 130vw); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .09); opacity: 0; transform: translate(-50%, -50%) scale(.3); animation: frames 14s linear infinite; }
.hero__frames i:nth-child(2) { animation-delay: -4.67s; }
.hero__frames i:nth-child(3) { animation-delay: -9.33s; border-color: rgba(215, 37, 61, .35); }
@keyframes frames {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

.hero__inner { position: relative; display: grid; justify-items: center; gap: 28px; text-align: center; will-change: transform, opacity; }
.hero__eyebrow { padding: 9px 14px; border: 1px solid var(--line-dark); border-radius: 2px; }
.hero__title { max-width: 1120px; }
.hero__title em { color: #fff; }
.hero__lead { max-width: 640px; color: rgba(255, 255, 255, .76); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 32px; margin-top: 6px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font: 500 10.5px/1.2 var(--brand); text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .6); }
.hero__meta li { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta li::before { content: ""; width: 5px; height: 5px; background: var(--red); }
.hero__stage { position: relative; margin-top: clamp(64px, 8vw, 104px); }

/* ---------- DOSSIER CANDIDAT (animé) ---------- */
.dossier { position: relative; max-width: 1100px; margin-inline: auto; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 50px 90px -50px rgba(10, 31, 56, .55); will-change: transform; }
.dossier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red); }
.dossier__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; font: 500 10px/1.2 var(--brand); text-transform: uppercase; letter-spacing: .14em; color: var(--quiet); border-bottom: 1px solid var(--rule); }
.dossier__title { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; color: var(--ink); }
.dossier__tag { padding: 5px 8px; border: 1px solid var(--steel); border-radius: 2px; }
.dossier__ref { margin-left: auto; }
.dossier__ref b { font-weight: 600; color: var(--ink); }
.dossier__step { padding: 7px 10px; color: var(--ink); background: var(--paper); border-radius: 2px; font-variant-numeric: tabular-nums; }
.dossier__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.dossier__body.is-out { opacity: 0; transform: translateY(12px); }
.dossier__id { display: flex; flex-direction: column; gap: 6px; padding: 24px; text-align: left; background: var(--paper); border-right: 1px solid var(--rule); }
.dossier__name { margin-top: 6px; font: 500 32px/1.12 var(--serif); letter-spacing: -.01em; }
.dossier__role { font-size: 15px; color: var(--quiet); }
.dossier__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 16px; background: var(--rule); border: 1px solid var(--rule); }
.dossier__facts div { display: grid; gap: 6px; padding: 11px 12px; background: #fff; }
.dossier__facts dt { font: 500 9.5px/1 var(--brand); text-transform: uppercase; letter-spacing: .14em; color: var(--quiet); }
.dossier__facts dd { font-size: 14px; font-weight: 500; }
.dossier__score { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: auto; padding-top: 20px; }
.dossier__value { font: 500 48px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.dossier__value small { margin-left: 3px; font: 500 12px/1 var(--brand); color: var(--quiet); }
.dossier__bar { position: relative; grid-column: 1 / -1; height: 4px; overflow: hidden; background: var(--rule); }
.dossier__bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.dossier__checks { display: grid; align-content: start; }
.chk { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 17px 24px; text-align: left; border-bottom: 1px solid var(--rule); transition: background-color .5s var(--ease); }
.chk:last-child { border-bottom: 0; }
.chk:hover { background: var(--paper); }
.chk__ico { position: relative; display: grid; place-items: center; width: 28px; height: 28px; color: var(--red); border: 1px solid var(--steel); transition: background-color .4s, border-color .4s, color .4s; }
.chk__ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chk__ico path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--ease) .1s; }
.chk__ico::before { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--red); border-right-color: transparent; border-radius: 50%; opacity: 0; animation: spin .7s linear infinite; }
.chk__label { overflow: hidden; font-size: 15px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.chk__meta { font-size: 13px; color: var(--quiet); white-space: nowrap; }
.chk__status { min-width: 92px; padding: 7px 8px; font: 500 9.5px/1 var(--brand); text-transform: uppercase; letter-spacing: .14em; text-align: center; color: var(--quiet); border: 1px solid var(--steel); border-radius: 2px; transition: background-color .4s, border-color .4s, color .4s; }
.chk.is-run .chk__ico { border-color: var(--red); }
.chk.is-run .chk__ico::before { opacity: 1; }
.chk.is-run .chk__status { color: var(--red); border-color: var(--red); }
.chk.is-ok .chk__ico { color: #fff; background: var(--red); border-color: var(--red); }
.chk.is-ok .chk__ico path { stroke-dashoffset: 0; }
.chk.is-ok .chk__status { color: #fff; background: var(--navy); border-color: var(--navy); }
.chk.is-flash { animation: chk-flash 1.1s var(--ease); }
@keyframes chk-flash { from { background: var(--red-soft); } to { background: transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
.dossier__foot { display: flex; align-items: center; gap: 16px; padding: 14px 24px; font: 500 9.5px/1 var(--brand); text-transform: uppercase; letter-spacing: .14em; color: var(--quiet); border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.dossier__progress { position: relative; flex: 1; height: 1px; background: var(--rule); }
.dossier__progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(1); }

/* ---------- CE QUE NOUS VÉRIFIONS ---------- */
.rail { padding-top: clamp(72px, 9vw, 128px); text-align: center; }
.rail__label { margin-bottom: 30px; color: var(--quiet); }
.rail__wrap { overflow: hidden; border-block: 1px solid var(--rule); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.rail__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.rail__wrap:hover .rail__track { animation-play-state: paused; }
.rail__track li { display: flex; align-items: center; gap: clamp(28px, 3.5vw, 56px); padding: 30px 0 30px clamp(28px, 3.5vw, 56px); font: 400 clamp(24px, 2.4vw, 34px)/1 var(--serif); white-space: nowrap; transition: color .4s var(--ease); }
.rail__track li::after { content: ""; flex: none; width: 9px; height: 9px; border: 2.5px solid var(--red); transition: transform .7s var(--ease); }
.rail__track li em { color: var(--quiet); transition: color .4s var(--ease); }
.rail__track li:hover, .rail__track li:hover em { color: var(--red); }
.rail__track li:hover::after { transform: rotate(90deg) scale(1.3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CONVICTION ---------- */
.statement__inner { max-width: 1120px; display: grid; justify-items: center; gap: 36px; text-align: center; }
.statement__text { font-size: clamp(30px, 3.9vw, 56px); line-height: 1.14; }

/* ---------- ENGAGEMENTS CHIFFRÉS ---------- */
.metrics { padding-bottom: 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.metric { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 320px; padding: 28px 24px; background: #fff; transition: background-color .6s var(--ease), color .6s var(--ease); }
.metric + .metric { border-left: 1px solid var(--rule); }
.metric--paper { background: var(--paper); }
.metric::after { content: ""; position: absolute; right: 24px; top: 28px; width: 12px; height: 12px; border: 3.5px solid var(--red); transform: scale(0) rotate(-90deg); transition: transform .7s var(--ease-back); }
.metric:hover { color: #fff; background: var(--navy); }
.metric:hover::after { transform: none; }
.metric .eyebrow { color: var(--quiet); transition: color .6s; }
.metric__value { display: flex; align-items: baseline; gap: 12px; margin-top: auto; font: 500 clamp(64px, 6.6vw, 108px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.metric__value small { font: 500 11px/1 var(--brand); text-transform: uppercase; letter-spacing: .16em; color: var(--red); }
.metric__note { max-width: 28ch; font-size: 14.5px; color: var(--quiet); transition: color .6s; }
.metric:hover .eyebrow, .metric:hover .metric__note { color: rgba(255, 255, 255, .72); }

/* Odomètre */
.odo { display: inline-flex; height: 1.04em; overflow: hidden; line-height: 1.04; }
.odo__col { display: flex; flex-direction: column; transition: transform 2.2s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.odo__col span, .odo__sep { display: block; height: 1.04em; }
.odo__sep { width: .22em; }

/* ---------- LE DOSSIER (trio) ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 480px; padding: 24px; background: #fff; border: 1px solid var(--rule); transition: border-color .5s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease); }
.card:hover { transform: translateY(-8px); border-color: var(--steel); box-shadow: 0 34px 60px -34px rgba(15, 42, 74, .3); }
.card--night { color: #fff; background: var(--navy); border-color: var(--navy); }
.card--night:hover { border-color: var(--navy); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; font: 500 10.5px/1.2 var(--brand); text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid var(--rule); }
.card--night .card__head { border-color: rgba(255, 255, 255, .14); }
.card__muted { color: var(--quiet); }
.card__name { margin-top: 10px; font: 500 36px/1.1 var(--serif); }
.card__role { color: rgba(255, 255, 255, .72); }
.kv { display: grid; margin-top: auto; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.kv dt { font: 500 9.5px/1.6 var(--brand); text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .6); }
.kv dd { text-align: right; }
.bars { display: grid; gap: 18px; margin-top: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14.5px; }
.bars li:nth-child(2) { --k: 1; } .bars li:nth-child(3) { --k: 2; } .bars li:nth-child(4) { --k: 3; } .bars li:nth-child(5) { --k: 4; }
.bars b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bars i { position: relative; grid-column: 1 / -1; height: 3px; overflow: hidden; background: var(--rule); }
.bars i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--v)); transition: transform 1.4s var(--ease) calc(var(--k, 0) * .1s + .25s); }
.js .card:not(.is-in) .bars i::after { transform: scaleX(0); }
.card__foot { margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--quiet); border-top: 1px solid var(--rule); }
.card__score { margin: 10px 0 6px; font: 500 clamp(72px, 6.6vw, 112px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.card__score small { margin-left: 4px; font: 500 13px/1 var(--brand); letter-spacing: 0; color: var(--quiet); }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14.5px; border-top: 1px solid var(--rule); }
.ticks svg { flex: none; width: 18px; height: 18px; padding: 2px; color: #fff; background: var(--red); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ticks path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .card .ticks path { stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.js .card.is-in .ticks path { stroke-dashoffset: 0; }
.ticks li:nth-child(1) path { transition-delay: .4s; } .ticks li:nth-child(2) path { transition-delay: .55s; }
.ticks li:nth-child(3) path { transition-delay: .7s; } .ticks li:nth-child(4) path { transition-delay: .85s; }
.ticks li:nth-child(5) path { transition-delay: 1s; }

/* ---------- MÉTHODE (scroll horizontal) ---------- */
.method { position: relative; color: #fff; background: var(--navy); }
.method__sticky { position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 52px); overflow: hidden; }
.method.is-pinned .method__sticky { position: sticky; top: 0; height: 100vh; padding: calc(var(--header-h) + 16px) 0 32px; }
.method:not(.is-pinned) .method__sticky { padding-block: var(--section-y); }
.method__head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.method__title { max-width: 12em; margin-top: 20px; }
.method__title em { color: #fff; }
.method__progress { display: grid; gap: 12px; min-width: 240px; font: 500 10.5px/1 var(--brand); text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .65); }
.method__count b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.method__bar { position: relative; height: 2px; background: rgba(255, 255, 255, .14); }
.method__bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.method__hint::after { content: " →"; display: inline-block; animation: hint 1.6s var(--ease-io) infinite; }
@keyframes hint { 50% { transform: translateX(6px); } }
.method__viewport { position: relative; }
.method__track { display: flex; gap: 16px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); will-change: transform; }
.step { position: relative; flex: none; display: flex; flex-direction: column; gap: 14px; width: clamp(300px, 29vw, 400px); min-height: min(500px, 58vh); padding: 24px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .7s var(--ease), border-color .7s var(--ease), color .7s var(--ease); }
.step.is-active { color: var(--ink); background: #fff; border-color: #fff; }
.step__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; font: 500 10.5px/1 var(--brand); text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid rgba(255, 255, 255, .14); transition: border-color .7s; }
.step__num { font: 500 48px/1 var(--serif); letter-spacing: 0; color: rgba(255, 255, 255, .45); transition: color .5s; }
.step.is-active .step__num { color: var(--red); }
.step__time { color: rgba(255, 255, 255, .7); transition: color .7s; }
.step__title { font: 500 30px/1.15 var(--serif); }
.step__text { font-size: 15px; color: rgba(255, 255, 255, .72); transition: color .7s; }
.step__viz { display: grid; gap: 6px; margin-top: auto; }
.step__viz li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 11px 12px; font-size: 13.5px; background: rgba(255, 255, 255, .06); transition: background-color .7s; }
.step__viz span { font: 500 9.5px/1.2 var(--brand); text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.step__viz b { font-weight: 500; }
.step__viz i { position: relative; grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.step__viz i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease) .25s; }
.step.is-seen .step__viz i::after { transform: scaleX(var(--v, 1)); }
.step__deliv { padding-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .14); transition: color .7s, border-color .7s; }
.step__deliv span { display: block; margin-bottom: 6px; font: 500 9.5px/1 var(--brand); text-transform: uppercase; letter-spacing: .14em; color: var(--red); }
.step.is-active .step__top, .step.is-active .step__deliv { border-color: var(--rule); }
.step.is-active .step__time, .step.is-active .step__text, .step.is-active .step__deliv { color: var(--quiet); }
.step.is-active .step__viz li { background: var(--paper); }
.step.is-active .step__viz i { background: var(--rule); }
.step--end, .step--end.is-active { justify-content: center; gap: 26px; color: #fff; background: transparent; border: 1px dashed rgba(255, 255, 255, .28); }
.step__big { font: 500 clamp(32px, 3vw, 46px)/1.08 var(--serif); }
.step__big em { font-style: italic; }
.step--end .btn { align-self: flex-start; }
.method:not(.is-pinned) .method__track { flex-direction: column; width: auto; max-width: 680px; margin-inline: auto; padding-inline: var(--gutter); }
.method:not(.is-pinned) .step { width: auto; min-height: 0; }
.method:not(.is-pinned) .method__hint { display: none; }
.metric__pre { white-space: nowrap; }
