/* ═══════════════════════════════════════════════════════════════
   Kaizoku Import — Accueil · section « Notre méthode » (#processus), version animée
   À charger APRÈS style.css. Tout est limité à #processus.
   Classes d'origine conservées : sec, sec-label, sec-h2, proc-track, proc-step,
   proc-dot, proc-name, proc-desc, btn btn-outline.
   États posés par section-methode.js : .kzm-run (séquence d'entrée) sur la section,
   .is-on (étape allumée) et .is-done (étape passée) sur .proc-step.
   ═══════════════════════════════════════════════════════════════ */
#processus{
  --k-bg:#0E1014;--k-bg1:#14171C;--k-bg2:#1B1F26;--k-line:#272D37;
  --k-t:#E9EDF2;--k-t2:#B9C2CE;--k-t3:#828C9B;
  --k-blue:#3D7DFF;--k-blue2:#6FA0FF;--k-blue3:#A9C8FF;
  --k-d:'Chakra Petch',sans-serif;--k-s:'Manrope',system-ui,sans-serif;
  --k-ease:cubic-bezier(.16,.8,.24,1);
  position:relative;overflow:hidden;padding:clamp(64px,8vw,120px) 5vw;color:var(--k-t);font-family:var(--k-s);
  /* fibre de carbone */
  background-color:#14171C!important;
  background-image:linear-gradient(27deg,#191c22 5px,transparent 5px),linear-gradient(207deg,#191c22 5px,transparent 5px),linear-gradient(27deg,#101216 5px,transparent 5px),linear-gradient(207deg,#101216 5px,transparent 5px),linear-gradient(90deg,#15181d 10px,transparent 10px),linear-gradient(#171a20 25%,#13161a 25%,#13161a 50%,transparent 50%,transparent 75%,#1c1f25 75%,#1c1f25)!important;
  background-size:20px 20px;background-position:0 5px,10px 0,0 10px,10px 5px,0 0,0 0;
}
#processus *,#processus *::before,#processus *::after{box-sizing:border-box}
#processus .kzm-in{max-width:1440px;margin:0 auto}

@keyframes kzmMask{from{transform:translateY(105%)}to{transform:none}}
@keyframes kzmRise{from{opacity:0;transform:translateY(46px)}to{opacity:1;transform:none}}
@keyframes kzmFade{from{opacity:0}to{opacity:1}}
@keyframes kzmDraw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes kzmPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(2.4);opacity:0}}
@keyframes kzmSweep{from{transform:translateX(-120%)}to{transform:translateX(520%)}}

/* ── En-tête ── */
#processus .kzm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 40px;flex-wrap:wrap}
#processus .sec-label{display:flex;align-items:center;gap:14px;margin:0;font-family:var(--k-d);font-weight:600;font-size:13px;letter-spacing:.34em;text-transform:uppercase;color:var(--k-blue2)}
#processus .sec-label::before{content:'';width:34px;height:1px;background:var(--k-blue);transform-origin:left}
#processus .sec-h2{margin:20px 0 0;display:flex;flex-wrap:wrap;gap:0 .26em;font-family:var(--k-d);font-weight:700;font-size:clamp(46px,7.4vw,116px);line-height:.95;letter-spacing:0;text-transform:uppercase;color:var(--k-t)}
#processus .sec-h2 .kzm-w{display:inline-block;overflow:hidden;padding:.04em .08em .04em 0}
#processus .sec-h2 .kzm-w>*{display:inline-block}
#processus .sec-h2 em{font-style:italic;color:var(--k-blue)}
#processus .kzm-tools{display:flex;align-items:center;gap:22px;padding-bottom:10px}
#processus .kzm-count{display:flex;align-items:baseline;gap:8px;font-family:var(--k-d)}
#processus .kzm-count b{font-weight:700;font-size:44px;line-height:1;min-width:1.25em;text-align:right;color:var(--k-t)}
#processus .kzm-count span{font-weight:600;font-size:14px;letter-spacing:.2em;color:var(--k-t3)}
#processus .kzm-replay{height:44px;padding:0 18px;background:var(--k-bg);border:1px solid var(--k-line);color:var(--k-t2);font-family:var(--k-s);font-weight:500;font-size:11px;letter-spacing:.24em;text-transform:uppercase;cursor:pointer;transition:border-color .2s,color .2s}
#processus .kzm-replay:hover{border-color:var(--k-blue);color:var(--k-t)}

/* ── Ligne de progression ── */
#processus .kzm-line{position:relative;height:2px;background:var(--k-line);margin-top:clamp(36px,4.4vw,64px);overflow:hidden;transform-origin:left}
#processus .kzm-line i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--k-blue);transition:width .9s cubic-bezier(.2,.7,.2,1)}
#processus .kzm-line::after{content:'';position:absolute;top:0;bottom:0;left:0;width:20%;background:linear-gradient(90deg,transparent,var(--k-blue3),transparent);animation:kzmSweep 3.6s linear infinite}

/* ── Plaques ── */
#processus .proc-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:14px;margin-top:22px;padding:0;border:0}
#processus .proc-track::before,#processus .proc-track::after{display:none}
#processus .proc-step{position:relative;min-height:clamp(280px,26vw,350px);margin:0;padding:28px 24px;background:var(--k-bg);border:1px solid var(--k-line);border-radius:0;text-align:left;display:flex;flex-direction:column;cursor:pointer;clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%);transition:transform .6s cubic-bezier(.2,.7,.2,1),background .5s,border-color .5s}
/* barre du haut */
#processus .proc-step::before{content:'';position:absolute;left:0;top:0;height:3px;width:0;background:var(--k-blue);transition:width .7s cubic-bezier(.2,.7,.2,1)}
/* point (clignote quand l'étape est allumée) */
#processus .proc-step::after{content:'';position:absolute;right:50px;top:34px;width:10px;height:10px;background:var(--k-line);transition:background .4s}
#processus .proc-dot{width:auto;height:auto;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;display:block;font-family:var(--k-d);font-weight:700;font-style:normal;font-size:clamp(64px,6.4vw,92px);line-height:.85;color:var(--k-t3);transition:color .5s}
#processus .proc-name{margin:auto 0 0;padding-top:30px;font-family:var(--k-d);font-weight:700;font-size:clamp(21px,1.9vw,26px);line-height:1.05;letter-spacing:0;text-transform:uppercase;color:var(--k-t2);transition:color .5s}
#processus .proc-desc{margin:12px 0 0;min-height:4.6em;font-family:var(--k-s);font-weight:400;font-size:15.5px;line-height:1.55;color:var(--k-t2);text-wrap:pretty;transition:color .5s}

/* étape passée */
#processus .proc-step.is-done::before{width:100%}
#processus .proc-step.is-done::after{background:var(--k-blue)}
#processus .proc-step.is-done .proc-dot{color:var(--k-blue2)}
/* étape allumée */
#processus .proc-step.is-on{background:var(--k-bg2);border-color:var(--k-blue);transform:translateY(-12px)}
#processus .proc-step.is-on::before{width:100%}
#processus .proc-step.is-on::after{background:var(--k-blue);animation:kzmPulse 1.6s ease-out infinite}
#processus .proc-step.is-on .proc-dot{color:var(--k-blue)}
#processus .proc-step.is-on .proc-name,#processus .proc-step.is-on .proc-desc{color:var(--k-t)}
/* final : « Remise des clefs » en bleu plein */
#processus .proc-step.is-on:last-child{background:var(--k-blue)}
#processus .proc-step.is-on:last-child::before,#processus .proc-step.is-on:last-child::after{background:#fff}
#processus .proc-step.is-on:last-child .proc-dot,#processus .proc-step.is-on:last-child .proc-name,#processus .proc-step.is-on:last-child .proc-desc{color:#fff}
#processus .proc-step.is-on:last-child .proc-desc{font-weight:600}

/* ── Lien ── */
#processus .kzm-cta{display:flex;justify-content:center;margin-top:clamp(36px,4vw,56px);text-align:center}
#processus .btn.btn-outline{display:inline-flex;align-items:center;gap:14px;height:54px;padding:0 30px;background:var(--k-bg);border:1px solid rgba(233,237,242,.35);border-radius:0;color:var(--k-t);font-family:var(--k-d);font-weight:600;font-size:13px;letter-spacing:.22em;text-transform:uppercase;text-decoration:none;transition:background .2s,border-color .2s,color .2s}
#processus .btn.btn-outline::after{content:'';width:30px;height:1px;background:currentColor}
#processus .btn.btn-outline:hover{background:var(--k-blue);border-color:var(--k-blue);color:#fff}

/* ── Séquence d'entrée (jouée quand .kzm-run est posé ; « backwards » : rien ne reste figé après) ── */
#processus.kzm-run .sec-label::before{animation:kzmDraw .9s cubic-bezier(.2,.7,.2,1) backwards}
#processus.kzm-run .sec-label{animation:kzmFade .9s .1s backwards}
#processus.kzm-run .sec-h2 .kzm-w>*{animation:kzmMask 1s var(--k-ease) .15s backwards}
#processus.kzm-run .sec-h2 .kzm-w:nth-child(2)>*{animation-delay:.32s}
#processus.kzm-run .kzm-tools{animation:kzmFade .9s .9s backwards}
#processus.kzm-run .kzm-line{animation:kzmDraw 1.5s cubic-bezier(.3,.6,.2,1) .5s backwards}
#processus.kzm-run .proc-step{animation:kzmRise 1s var(--k-ease) backwards}
#processus.kzm-run .proc-step:nth-child(1){animation-delay:.7s}
#processus.kzm-run .proc-step:nth-child(2){animation-delay:.86s}
#processus.kzm-run .proc-step:nth-child(3){animation-delay:1.02s}
#processus.kzm-run .proc-step:nth-child(4){animation-delay:1.18s}
#processus.kzm-run .proc-step:nth-child(5){animation-delay:1.34s}
#processus.kzm-run .kzm-cta{animation:kzmRise 1s var(--k-ease) 1.7s backwards}

@media (prefers-reduced-motion:reduce){
  #processus *,#processus *::before,#processus *::after{animation:none!important;transition:none!important}
  #processus .proc-step.is-on{transform:none}
}
@media (max-width:760px){
  #processus{padding:56px 18px}
  #processus .kzm-count b{font-size:34px}
  #processus .proc-step{min-height:0;padding:24px 20px}
  #processus .proc-step.is-on{transform:translateY(-6px)}
  #processus .proc-desc{min-height:0}
}

/* ── Ajustements d'intégration avec le vrai style.css (12/11/2026) ──
   style.css centre le sur-titre, dessine un losange tourné à 45° devant lui et met « méthode » en romain :
   on rétablit ici la maquette (sur-titre à gauche précédé d'un filet droit, « méthode » en italique). */
#processus .sec-label{justify-content:flex-start!important;text-align:left!important}
#processus .sec-label::before{transform:none;border-radius:0}
#processus .sec-h2{text-align:left!important}
/* identifiant doublé : style.css force les titres en romain avec une règle plus précise (#page-home :is(…)) */
#processus#processus .sec-h2 em{font-style:italic!important}
/* La section a sa propre séquence d'entrée : elle ne dépend pas de l'apparition au défilement du site (.reveal), sinon elle restait
   invisible tant que cette détection n'avait pas répondu. */
#processus.reveal{opacity:1!important;transform:none!important}
