/* PAGE SERVICES — bande-annonce de l'atelier. Tout est préfixé .kzs- : aucun conflit avec le CSS existant.
   Couleurs Carbon : #0E1014 #14171C #1B1F26 #272D37 #353D4A · texte #E9EDF2 #B9C2CE #828C9B · bleu #3D7DFF #6FA0FF #A9C8FF
   --kzs-nav = hauteur de la barre de navigation fixe du site. */
.kzs-hero, .kzs-contact, .kzs-3d { --kzs-nav: 67px; --kzs-ease: cubic-bezier(.16,.8,.24,1); font-family: 'Manrope', system-ui, sans-serif; color: #E9EDF2; box-sizing: border-box; }
.kzs-hero *, .kzs-contact *, .kzs-3d * { box-sizing: border-box; }

/* ── Écran unique ── */
.kzs-hero { position: relative; min-height: 100vh; overflow: hidden; background: #0E1014; display: flex; flex-direction: column; padding: calc(var(--kzs-nav) + 5vh) 5vw 6vh; }
.kzs-shots { position: absolute; inset: 0; overflow: hidden; }
.kzs-shot { position: absolute; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: right center; filter: brightness(.66) saturate(.82) contrast(1.1); opacity: 0; transform: scale(1.05); transition: opacity 1.1s ease, transform 7s cubic-bezier(.2,.6,.2,1); }
.kzs-shot.is-on { opacity: 1; transform: scale(1); }
.kzs-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14,16,20,.95) 0%, rgba(14,16,20,.78) min(460px,60vw), rgba(14,16,20,.2) 78%, rgba(14,16,20,.45) 100%), linear-gradient(to top, rgba(14,16,20,.95) 0%, rgba(14,16,20,0) 62%); box-shadow: inset 0 0 240px rgba(0,0,0,.7); }
.kzs-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #6FA0FF; box-shadow: 0 0 34px 8px rgba(61,125,255,.55); pointer-events: none; opacity: 0; }
.kzs-sweep.is-run { animation: kzsSweep 1s cubic-bezier(.5,0,.2,1) both; }
.kzs-corner { position: absolute; right: 3vw; width: 30px; height: 30px; border-right: 2px solid #3D7DFF; pointer-events: none; }
.kzs-corner-t { top: calc(var(--kzs-nav) + 3vh); border-top: 2px solid #3D7DFF; }
.kzs-corner-b { bottom: 3vh; border-bottom: 2px solid #3D7DFF; }

.kzs-cols { position: relative; flex: 1; display: flex; flex-wrap: wrap; gap: 32px clamp(28px,4vw,64px); align-items: stretch; }
.kzs-left { flex: 0 1 380px; min-width: min(300px,100%); display: flex; flex-direction: column; }
.kzs-right { flex: 1 1 300px; min-width: 0; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; }
.kzs-panels { width: min(720px,100%); }

.kzs-eyebrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #6FA0FF; }
.kzs-left > .kzs-eyebrow { letter-spacing: .34em; }
.kzs-rule { width: 34px; height: 1px; background: #3D7DFF; display: inline-block; }
.kzs-in-fade { animation: kzsFade 1.2s ease .2s both; }
.kzs-h1 { margin: 12px 0 0; overflow: hidden; padding-top: .05em; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: clamp(46px,min(7.4vw,13vh),118px); line-height: .86; text-transform: uppercase; color: #E9EDF2; }
.kzs-h1 span { display: inline-block; animation: kzsRise 1.4s var(--kzs-ease) .3s both; }
.kzs-lead { margin: clamp(12px,2.2vh,22px) 0 0; font-size: clamp(14px,1.05vw,16px); line-height: 1.7; color: #E9EDF2; text-wrap: pretty; animation: kzsUp 1.4s var(--kzs-ease) .6s both; }

/* Sommaire : la barre bleue de la ligne active sert de minuteur */
.kzs-index { margin-top: auto; padding-top: clamp(18px,3.4vh,40px); display: flex; flex-direction: column; border-bottom: 1px solid rgba(233,237,242,.18); animation: kzsFade 1.2s ease 1s both; }
.kzs-row { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; height: clamp(34px,6.2vh,54px); min-height: 44px; padding: 0; background: none; border: 0; border-top: 1px solid rgba(233,237,242,.18); cursor: pointer; text-align: left; }
.kzs-row-n { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: #828C9B; transition: color .3s; }
.kzs-row-l { flex: 1; min-width: 0; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: clamp(16px,2.9vh,25px); text-transform: uppercase; color: #B9C2CE; transition: color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kzs-row-arrow { width: 0; height: 1px; background: #3D7DFF; display: inline-block; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.kzs-row-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: #3D7DFF; }
.kzs-row:hover .kzs-row-l, .kzs-row.is-on .kzs-row-l { color: #E9EDF2; }
.kzs-row.is-on .kzs-row-n { color: #3D7DFF; }
.kzs-row.is-on .kzs-row-arrow { width: 36px; }
.kzs-row.is-on .kzs-row-bar { width: 100%; }
.kzs-hero.is-auto .kzs-row.is-on .kzs-row-bar { animation: kzsFill var(--kzs-step, 6s) linear both; }
.kzs-hero.is-paused .kzs-row-bar { animation-play-state: paused !important; }

/* Fiche de la prestation à l'écran */
.kzs-panel { display: none; }
.kzs-panel.is-on { display: block; animation: kzsTxt .9s var(--kzs-ease); }
.kzs-soon { padding: 6px 10px; background: #0E1014; border: 1px solid #353D4A; font-size: 10.5px; letter-spacing: .22em; color: #B9C2CE; }
.kzs-title { margin: clamp(10px,2vh,18px) 0 0; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: clamp(24px,min(3.5vw,8.5vh),68px); line-height: .96; text-transform: uppercase; color: #E9EDF2; text-wrap: balance; overflow-wrap: anywhere; }
.kzs-text { margin: clamp(10px,2vh,18px) 0 0; max-width: 500px; font-size: clamp(15px,1.2vw,18px); line-height: 1.65; color: #E9EDF2; text-wrap: pretty; }
.kzs-list { list-style: none; margin: clamp(12px,2.2vh,22px) 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid rgba(233,237,242,.22); }
.kzs-list li { display: flex; align-items: center; gap: 14px; padding: clamp(6px,1.2vh,11px) 0; border-bottom: 1px solid rgba(233,237,242,.22); font-size: 15px; color: #E9EDF2; }
.kzs-list li::before { content: ''; width: 7px; height: 7px; background: #3D7DFF; flex-shrink: 0; }
.kzs-note { display: block; margin-top: clamp(14px,2.6vh,24px); font-size: 13.5px; line-height: 1.6; color: #B9C2CE; }
.kzs-actions { margin-top: clamp(16px,3vh,30px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kzs-partner { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #E9EDF2; }
.kzs-btn-3d { height: 56px; padding: 0 32px 0 26px; background: #3D7DFF; border: 0; color: #fff; font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; clip-path: polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%); }
.kzs-btn-3d:hover { background: #6FA0FF; color: #fff; }
.kzs-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: kzsPulse 1.6s ease-in-out infinite; }
.kzs-btn-quote { display: inline-flex; align-items: center; gap: 16px; height: 54px; padding: 0 26px; border: 1px solid rgba(233,237,242,.5); font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #E9EDF2; text-decoration: none; }
.kzs-btn-quote:hover { background: #3D7DFF; border-color: #3D7DFF; color: #fff; }
.kzs-line { width: 36px; height: 1px; background: currentColor; display: inline-block; }

/* ≥ 760 px : deux colonnes, photo entière calée à droite et fondue dans le noir à gauche */
@media (min-width: 760px) {
  .kzs-cols { flex-wrap: nowrap; }
  .kzs-right { min-height: 0; }
  .kzs-shot { width: auto; aspect-ratio: 3 / 2; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%); }
}

/* ── Bandeau contact (fond carbone) ── */
.kzs-contact { position: relative; padding: clamp(80px,9vw,140px) 5vw; border-top: 1px solid #3D7DFF; background-color: #14171C; 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); background-size: 20px 20px; background-position: 0 5px,10px 0,0 10px,10px 5px,0 0,0 0; }
.kzs-contact .kzs-eyebrow { letter-spacing: .34em; }
.kzs-contact-title { margin: 22px 0 0; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: clamp(44px,8.6vw,150px); line-height: .9; text-transform: uppercase; color: #E9EDF2; }
.kzs-contact-title em { font-style: italic; color: #3D7DFF; }
.kzs-contact-row { margin-top: clamp(32px,4.4vw,64px); display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 56px; flex-wrap: wrap; border-top: 1px solid #353D4A; padding-top: clamp(24px,3vw,40px); }
.kzs-contact-copy { max-width: 560px; }
.kzs-contact-lbl { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #E9EDF2; }
.kzs-contact-copy p { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: #B9C2CE; text-wrap: pretty; }
.kzs-btn-contact { display: inline-flex; align-items: center; gap: 16px; height: 64px; padding: 0 40px 0 32px; background: #3D7DFF; color: #fff; font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; text-decoration: none; clip-path: polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%); }
.kzs-btn-contact:hover { background: #6FA0FF; color: #fff; }
.kzs-reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--kzs-ease), transform 1.1s var(--kzs-ease); }
.kzs-reveal.is-in { opacity: 1; transform: none; }

/* ── Présentation 3D ── */
.kzs-3d { position: fixed; inset: 0; z-index: 100; background: #0B0D11; animation: kzsFade .6s ease both; }
.kzs-3d[hidden] { display: none; }
.kzs-3d-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.kzs-3d-veil { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 260px rgba(0,0,0,.8); background: linear-gradient(90deg, rgba(11,13,17,.96) 0%, rgba(11,13,17,.8) min(480px,60vw), rgba(11,13,17,0) min(760px,95vw)), linear-gradient(to top, rgba(11,13,17,.9) 0%, rgba(11,13,17,0) 42%); }
.kzs-3d-top { position: absolute; left: 0; right: 0; top: 0; height: 64px; background: #0B0D11; border-bottom: 1px solid #1B1F26; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4vw; }
.kzs-3d-brand { display: flex; align-items: center; gap: 14px; min-width: 0; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; color: #E9EDF2; }
.kzs-3d-brand img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.kzs-3d-brand b { font-weight: 700; color: #3D7DFF; }
.kzs-3d-brand i { font-style: normal; color: #828C9B; }
.kzs-3d-close { flex-shrink: 0; height: 44px; padding: 0 16px; background: #14171C; border: 1px solid #272D37; color: #E9EDF2; font-family: 'Manrope', sans-serif; font-weight: 500; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.kzs-3d-close:hover { border-color: #3D7DFF; color: #A9C8FF; }
.kzs-3d-copy { position: absolute; left: 4vw; bottom: 116px; width: min(440px,92vw); max-height: calc(100vh - 64px - 116px - 20px); overflow: hidden; }
.kzs-3d-copy.is-run { animation: kzsTxt .9s var(--kzs-ease); }
.kzs-3d-copy h2 { margin: 18px 0 0; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: clamp(26px,min(3.4vw,6.6vh),54px); line-height: 1; text-transform: uppercase; color: #E9EDF2; text-wrap: balance; }
.kzs-3d-copy p { margin: 16px 0 0; font-size: clamp(14px,1.1vw,16.5px); line-height: 1.65; color: #E9EDF2; text-wrap: pretty; }
.kzs-3d-legend { margin-top: 22px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: #E9EDF2; }
.kzs-3d-legend span { display: inline-flex; align-items: center; gap: 10px; }
.kzs-3d-legend i { width: 26px; display: inline-block; }
.kzs-leg-a { height: 3px; background: #828C9B; }
.kzs-leg-b { height: 4px; background: #3D7DFF; }
.kzs-btn-3d-cta { margin-top: 26px; height: 52px; padding: 0 30px 0 26px; }
.kzs-3d-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; background: #0B0D11; border-top: 1px solid #1B1F26; display: flex; align-items: stretch; gap: 20px; padding: 0 4vw; }
.kzs-3d-rail { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; align-items: center; }
.kzs-3d-step { min-width: 0; height: 60px; padding: 12px 0 0; background: none; border: 0; border-top: 3px solid #272D37; text-align: left; cursor: pointer; overflow: hidden; }
.kzs-3d-step b { display: block; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 18px; line-height: 1; color: #828C9B; }
.kzs-3d-step span { display: block; margin-top: 7px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #B9C2CE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kzs-3d-step.is-done { border-top-color: #3D7DFF; }
.kzs-3d-step.is-done b { color: #6FA0FF; }
.kzs-3d-step.is-on { border-top-color: #3D7DFF; }
.kzs-3d-step.is-on b { color: #3D7DFF; }
.kzs-3d-step.is-on span { color: #E9EDF2; }
.kzs-3d-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.kzs-3d-nav button { width: 48px; height: 48px; font-size: 17px; cursor: pointer; }
.kzs-3d-nav button:disabled { opacity: .35; cursor: default; }
.kzs-3d-prev { background: #14171C; border: 1px solid #272D37; color: #E9EDF2; }
.kzs-3d-prev:hover { border-color: #3D7DFF; }
.kzs-3d-next { background: #3D7DFF; border: 1px solid #3D7DFF; color: #fff; }
.kzs-3d-next:hover { background: #6FA0FF; }

@keyframes kzsUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes kzsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kzsRise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes kzsPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes kzsFill { from { width: 0%; } to { width: 100%; } }
@keyframes kzsSweep { from { transform: translateX(-4vw); opacity: 1; } to { transform: translateX(104vw); opacity: 0; } }
@keyframes kzsTxt { from { opacity: .3; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .kzs-shot { transition: opacity .4s ease; transform: none !important; }
  .kzs-sweep, .kzs-dot, .kzs-h1 span, .kzs-lead, .kzs-in-fade, .kzs-index, .kzs-panel.is-on, .kzs-3d-copy.is-run { animation: none !important; }
  .kzs-reveal { opacity: 1; transform: none; transition: none; }
}

/* ══ Intégration au site Kaizoku (15/11/2026) ══
   --kzs-nav est mesurée par page-services.js (menu fixe : 103 px sur ordinateur, moins sur téléphone). */
.kzs-hero { --kzs-nav: 103px; }
/* la fenêtre 3D passe au-dessus du menu (500) et des fenêtres du site (900) */
.kzs-3d { z-index: 950; }
/* scène 3D indisponible (WebGL absent, module non chargé) : fond uni, le texte des chapitres reste lisible */
.kzs-3d.is-no3d .kzs-3d-frame { visibility: hidden; }
/* le titre « Services » ne doit pas être coupé par la colonne de gauche (380 px) : on ne rogne que
   verticalement, ce qui suffit à l'animation d'entrée */
.kzs-h1 { overflow: visible; overflow-y: clip; white-space: nowrap; }
/* téléphone : le voile latéral de la maquette (prévu pour un écran large) masquait toute la scène 3D ;
   on ne garde qu'un fondu vers le bas, là où se trouve le texte */
@media (max-width: 759px) {
  .kzs-3d-veil { box-shadow: inset 0 0 90px rgba(0,0,0,.6); background: linear-gradient(to top, rgba(11,13,17,.97) 0%, rgba(11,13,17,.9) 34%, rgba(11,13,17,0) 60%); }
  .kzs-3d-brand { gap: 7px; font-size: 10.5px; letter-spacing: .08em; }
  .kzs-3d-brand img { width: 22px; height: 22px; }
  .kzs-3d-close { padding: 0 12px; }
  .kzs-3d-step span { display: none; }   /* rail : numéros seuls, les intitulés ne tiennent pas */
  .kzs-3d-step { height: 44px; }
  .kzs-3d-bar { height: 76px; gap: 12px; }
  .kzs-3d-copy { bottom: 96px; }
}
