@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;700;800&display=swap');
/* ============================================================
   KAZAKOM — style « nuit bleue » (en-tête + heros photo)
   Couche posée par-dessus le site existant : rien n'est supprimé.
   ============================================================ */
html.kz{
  --kz-bg:#040a18; --kz-bg2:#081328; --kz-bg3:#0d1b36;
  --kz-blue:#27b4f5; --kz-blue-hi:#8ad8ff;
  --kz-text:#f3f7fd; --kz-dim:#a3b4cc; --kz-line:rgba(120,175,235,.18);
  --ink:var(--kz-bg); --ink-2:var(--kz-bg2); --ink-3:var(--kz-bg3);
  --paper:var(--kz-text); --dim:var(--kz-dim);
  --gold:var(--kz-blue); --gold-hi:var(--kz-blue-hi);
  --line:var(--kz-line); --line-soft:rgba(120,175,235,.1);
  --display:'Plus Jakarta Sans',Arial,Helvetica,sans-serif;
  --body:'Plus Jakarta Sans',Arial,Helvetica,sans-serif;
  background:var(--kz-bg);
}
html.kz[dir=rtl]{--display:'Noto Sans Arabic',Arial,sans-serif;--body:'Noto Sans Arabic',Arial,sans-serif}
html.kz body{background:var(--kz-bg);color:var(--kz-text);font-family:var(--body)}
html.kz h1,html.kz h2,html.kz h3{font-family:var(--display)}
html.kz ::selection{background:#1b5d8f;color:#fff}
html.kz a:focus-visible,html.kz button:focus-visible{outline:2px solid var(--kz-blue);outline-offset:4px}

/* ---------- En-tête ---------- */
html.kz .system-header{
  display:flex;flex-wrap:nowrap;align-items:center;gap:clamp(16px,2.6vw,40px);
  padding:22px clamp(18px,4vw,64px);
  background:linear-gradient(180deg,rgba(4,10,24,.82) 0%,rgba(4,10,24,.35) 70%,rgba(4,10,24,0) 100%);
  border-bottom:1px solid transparent;
  transition:background .35s ease,border-color .35s ease,padding .35s ease;
}
html.kz .system-header.kz-solid{background:rgba(4,10,24,.9);border-bottom-color:var(--kz-line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html.kz .system-header .system-brand{flex-direction:row;align-items:center;gap:18px;padding:0;min-height:0;flex:none}
html.kz .system-header .brand-logo,html.kz .foot .brand-logo{
  position:static;display:block;flex:none;width:54px;height:54px;border-radius:13px;
  background:url('../media/kazakom-icon-192.png') center/cover no-repeat;
  box-shadow:0 8px 24px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.06);
}
html.kz .system-brand b{font-family:var(--body);font-weight:700;font-size:21px;letter-spacing:.3em;color:#fff}
html.kz .system-brand span{display:none}
html.kz .system-header .system-nav{
  display:flex;flex-basis:auto;order:0;margin-inline-start:auto;
  gap:clamp(18px,2.8vw,48px);justify-content:flex-end;align-items:center;
}
html.kz .system-header .system-nav a{font-size:16px;font-weight:500;color:#e2eaf6;padding:8px 0;border:0;white-space:nowrap;position:relative}
html.kz .system-header .system-nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--kz-blue);transform:scaleX(0);transition:transform .25s ease}
html.kz .system-header .system-nav a:hover{color:#fff}
html.kz .system-header .system-nav a:hover::after,html.kz .system-header .system-nav a[aria-current]::after{transform:scaleX(1)}
html.kz .system-header .system-nav a[aria-current]{color:var(--kz-blue-hi)}
html.kz .kz-contact{
  order:1;flex:none;display:inline-flex;align-items:center;justify-content:center;
  border:2px solid var(--kz-blue);color:var(--kz-blue);border-radius:999px;
  padding:13px 30px;font-size:16px;font-weight:600;white-space:nowrap;text-decoration:none;
  transition:background .2s,color .2s;
}
html.kz .kz-contact:hover{background:var(--kz-blue);color:#03101f}
html.kz .system-header .lang-pick{order:2;flex:none;border:1px solid var(--kz-line);border-radius:999px;padding:9px 13px;color:#dbe6f5;background:rgba(255,255,255,.03);font-size:13px}

/* ---------- Hero photo ---------- */
html.kz .kz-hero{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;
  min-height:min(90vh,860px);
  margin-top:calc(-1 * var(--kz-h,98px));
  padding:calc(var(--kz-h,98px) + 40px) 0 80px;
  background-color:var(--kz-bg);background-repeat:no-repeat;background-position:right center;background-size:cover;
}
html.kz .kz-hero::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(90deg,rgba(4,10,24,.94) 0%,rgba(4,10,24,.72) 34%,rgba(4,10,24,.12) 64%,rgba(4,10,24,0) 80%),
    linear-gradient(0deg,var(--kz-bg) 0%,rgba(4,10,24,0) 26%);
}
html.kz[dir=rtl] .kz-hero::before{
  background:
    linear-gradient(270deg,rgba(4,10,24,.94) 0%,rgba(4,10,24,.78) 42%,rgba(4,10,24,.35) 75%,rgba(4,10,24,.2) 100%),
    linear-gradient(0deg,var(--kz-bg) 0%,rgba(4,10,24,0) 26%);
}
html.kz .kz-hero-in{width:100%;max-width:1400px;margin:0 auto;padding:0 clamp(20px,6vw,120px)}
html.kz .kz-hero-in>section,html.kz .kz-hero-in>.wrap{padding:0;margin:0;max-width:none;width:auto;background:none;border:0}
html.kz .kz-hero h1{
  font-family:var(--display);font-weight:800;color:#fff;
  font-size:clamp(2.5rem,5.8vw,5.4rem);line-height:1.02;letter-spacing:-.035em;
  max-width:14em;margin:0;
  text-shadow:0 2px 30px rgba(0,0,0,.35);
}
html.kz[dir=rtl] .kz-hero h1{letter-spacing:0;line-height:1.25}
html.kz .kz-hero h1 em,html.kz .kz-hero h1 .kz-accent{display:block;font-style:normal;color:var(--kz-blue)}
html.kz .kz-hero p{color:#d5dfed;font-size:clamp(1.05rem,1.55vw,1.4rem);line-height:1.55;max-width:34em;margin:26px 0 0}
html.kz .kz-hero .kicker{color:var(--kz-blue-hi);font-size:13px;letter-spacing:.14em;margin:0 0 22px;font-family:var(--body)}
html.kz .kz-hero .lede{color:#d5dfed}
html.kz .kz-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:38px}
html.kz .kz-cta a{display:inline-flex;align-items:center;border-radius:999px;padding:15px 30px;font-weight:600;font-size:16px;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
html.kz .kz-cta .kz-a1{background:var(--kz-blue);color:#03101f}
html.kz .kz-cta .kz-a1:hover{background:var(--kz-blue-hi)}
html.kz .kz-cta .kz-a2{border:1px solid rgba(255,255,255,.35);color:#fff}
html.kz .kz-cta .kz-a2:hover{border-color:#fff}
/* entrée unique au chargement */
@media (prefers-reduced-motion:no-preference){
  html.kz .kz-hero-in{animation:kzIn .9s cubic-bezier(.2,.7,.2,1) both .1s}
  html.kz .kz-hero{animation:kzBg 1.6s ease-out both}
}
@keyframes kzIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes kzBg{from{background-size:auto 112%}to{background-size:cover}}

/* heros existants remis au style */
html.kz .kz-hero .pack-offer{margin-top:30px}
html.kz .kz-hero .pack-jump{color:var(--kz-blue-hi)}
html.kz .kz-hero .hero-actions{margin-top:32px}

/* ---------- Accueil ---------- */
html.kz .kz-home .globe-heading{display:none}
html.kz .globe-hero{
  background:
    linear-gradient(180deg,var(--kz-bg) 0%,rgba(4,10,24,.86) 18%,rgba(4,10,24,.9) 82%,var(--kz-bg) 100%),
    url('../media/kz/kz-05.jpg') center/cover no-repeat;
}

/* ---------- Blocs ---------- */
html.kz .system-card,html.kz .offer-card{background:var(--kz-bg2);border:1px solid var(--kz-line);border-radius:18px}
html.kz .system-card:hover,html.kz .offer-card:hover{border-color:rgba(39,180,245,.55);background:var(--kz-bg3)}
html.kz .topic-links a{border-radius:999px;border-color:var(--kz-line);color:var(--kz-blue-hi)}
html.kz .kicker{color:var(--kz-blue-hi)}

/* ---------- Pied de page ---------- */
html.kz .foot{
  background:
    linear-gradient(180deg,var(--kz-bg) 0%,rgba(4,10,24,.84) 35%,rgba(4,10,24,.92) 100%),
    url('../media/kz/kz-04.jpg') center 70%/cover no-repeat;
  border-top:0;
}
html.kz .foot .system-brand{flex-direction:row;align-items:center;gap:16px;padding:0}
html.kz .foot .brand-logo{width:44px;height:44px;border-radius:11px}

/* ---------- Écrans code + langue ---------- */
html.kz #lock{background:linear-gradient(rgba(4,10,24,.72),rgba(4,10,24,.86)),url('../media/kz/kz-02.jpg') center/cover no-repeat var(--kz-bg)}
html.kz #gate{background:linear-gradient(rgba(4,10,24,.55),rgba(4,10,24,.82)),url('../media/kz/kz-08.jpg') center/cover no-repeat var(--kz-bg)}
html.kz #gate button{border-radius:999px}
html.kz #gate button:hover{background:var(--kz-blue);border-color:var(--kz-blue);color:#03101f}

/* ---------- Tablette ---------- */
@media (max-width:1100px){
  html.kz .system-header{flex-wrap:wrap;row-gap:10px;padding-top:16px;padding-bottom:12px}
  html.kz .system-header .system-nav{order:3;flex-basis:100%;margin:0;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;gap:26px;padding-bottom:2px}
  html.kz .system-header .system-nav::-webkit-scrollbar{display:none}
  html.kz .system-header .system-nav a{font-size:15px}
  html.kz .kz-contact{margin-inline-start:auto}
}
/* ---------- Téléphone ---------- */
@media (max-width:640px){
  html.kz .system-header{gap:10px;padding:12px 16px 8px}
  html.kz .system-header .brand-logo{width:40px;height:40px;border-radius:10px}
  html.kz .system-header .system-brand{gap:11px}
  html.kz .system-brand b{font-size:16px;letter-spacing:.22em}
  html.kz .kz-contact{padding:8px 15px;font-size:13px;border-width:1.5px}
  html.kz .kz-contact .kz-long{display:none}
  html.kz .system-header .lang-pick{padding:7px 10px;font-size:12px}
  html.kz .system-header .system-nav{display:flex;gap:15px;justify-content:space-between}
  html.kz .system-header .system-nav a{font-size:13.5px;padding:6px 0}
  html.kz .kz-hero{
    min-height:88svh;align-items:flex-end;padding-bottom:44px;
    background-position:72% center;
  }
  html.kz .kz-hero::before,html.kz[dir=rtl] .kz-hero::before{
    background:linear-gradient(0deg,var(--kz-bg) 6%,rgba(4,10,24,.86) 38%,rgba(4,10,24,.35) 72%,rgba(4,10,24,.55) 100%);
  }
  html.kz .kz-hero h1{font-size:clamp(2.25rem,10.5vw,3.2rem)}
  html.kz .kz-hero p{font-size:1.05rem;margin-top:18px}
  html.kz .kz-cta{margin-top:26px}
  html.kz .kz-cta a{padding:13px 22px;font-size:15px}
}
@media (min-width:641px){html.kz .kz-contact .kz-short{display:none}}

/* ---------- Correctif téléphone : les démos ne débordent plus ---------- */
@media (max-width:999px){
  html.kz .swx-grid{grid-template-columns:minmax(0,1fr)}
  html.kz .swx-head,html.kz .swx-stage,html.kz .sw-stage{min-width:0;max-width:100%}
  html.kz .sw-tools{flex-wrap:wrap;gap:8px}
  html.kz .sw-sel{max-width:100%}
}

/* ---------- Boutons de langue ---------- */
html.kz .system-header .lang-pick{display:none!important}
html.kz .kz-langs{order:2;flex:none;display:inline-flex;border:1px solid var(--kz-line);border-radius:999px;padding:3px;background:rgba(255,255,255,.03)}
html.kz .kz-langs button{appearance:none;border:0;background:transparent;color:#c9d6e8;font:600 12.5px/1 var(--body);letter-spacing:.04em;padding:8px 10px;border-radius:999px;cursor:pointer;min-width:34px}
html.kz .kz-langs button:hover{color:#fff}
html.kz .kz-langs button[aria-pressed="true"]{background:var(--kz-blue);color:#03101f}
html.kz[dir=rtl] .kz-langs{direction:ltr}

/* ---------- En-tête toujours accessible sur téléphone ---------- */
@media (max-width:640px){
  html.kz .system-header{position:sticky;top:0;z-index:150}
  html.kz .system-header.kz-solid,html.kz .system-header{background:rgba(4,10,24,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  html.kz .kz-langs button{padding:7px 8px;min-width:30px;font-size:12px}
  html.kz .system-header .system-nav{gap:18px;justify-content:flex-start}
}
@media (max-width:360px){
  html.kz .system-brand b{display:none}
}
@media (max-width:520px){
  html.kz .system-header .system-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px;overflow:visible}
  html.kz .system-header .system-nav a{font-size:13.5px;padding:7px 0;text-align:center}
  html.kz .system-header .system-nav a::after{left:18%;right:18%}
}

/* ---------- Hero vidéo (page Formation) ---------- */
html.kz .kz-hero-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}
html.kz .kz-hero-video{background:#040a18}
@media (max-width:640px){html.kz .kz-hero-vid{object-position:60% center}}

/* ---------- Page Formation ---------- */
html.kz .kz-wrap{width:100%;max-width:1400px;margin:0 auto;padding:0 clamp(20px,6vw,120px)}
html.kz .kz-sec{padding:clamp(64px,9vw,120px) 0}
html.kz .kz-sec h2{font-family:var(--display);font-weight:800;font-size:clamp(2rem,4.2vw,3.6rem);line-height:1.05;letter-spacing:-.03em;margin:0;color:#fff}
html.kz[dir=rtl] .kz-sec h2{letter-spacing:0;line-height:1.3}
html.kz .kz-sec .kz-lead{color:var(--kz-dim);font-size:clamp(1.02rem,1.4vw,1.2rem);line-height:1.65;max-width:40em;margin:20px 0 0}
html.kz .kz-eyebrow{color:var(--kz-blue-hi);font-size:14px;font-weight:600;margin:0 0 16px}

html.kz .kz-jef-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(28px,5vw,72px);align-items:center}
html.kz .kz-jef-img{margin:0;border-radius:22px;overflow:hidden;border:1px solid var(--kz-line);box-shadow:0 30px 80px rgba(0,0,0,.45)}
html.kz .kz-jef-img img{display:block;width:100%;height:auto}
html.kz .kz-vids{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:clamp(40px,6vw,72px)}
html.kz .kz-vids figure{margin:0}
html.kz .kz-vids video{display:block;width:100%;aspect-ratio:16/9;background:#000;border-radius:16px;border:1px solid var(--kz-line)}
html.kz .kz-vids figcaption{display:flex;gap:10px;align-items:baseline;margin-top:12px;color:var(--kz-dim);font-size:14px}
html.kz .kz-vids figcaption b{color:#fff;font-weight:700}

html.kz .kz-offres{background:linear-gradient(180deg,var(--kz-bg) 0%,var(--kz-bg2) 45%,var(--kz-bg) 100%)}
html.kz .kz-offre{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0;margin-top:clamp(36px,5vw,56px);border:1px solid var(--kz-line);border-radius:26px;overflow:hidden;background:rgba(8,19,40,.8)}
html.kz .kz-offre+.kz-offre{margin-top:28px}
html.kz .kz-offre-media{position:relative;min-height:320px;background:#000}
html.kz .kz-offre-media img,html.kz .kz-offre-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html.kz .kz-offre-eco .kz-offre-media{background:#040a18 url('../media/kz/formation/ecommerce.jpg') center/cover no-repeat;display:flex;align-items:center;justify-content:center;padding:28px}
html.kz .kz-offre-eco .kz-offre-media::before{content:"";position:absolute;inset:0;background:rgba(4,10,24,.55)}
html.kz .kz-offre-eco .kz-offre-media video{position:relative;inset:auto;width:auto;height:min(560px,70vh);aspect-ratio:9/16;border-radius:22px;border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 70px rgba(0,0,0,.6)}
html.kz .kz-offre-body{padding:clamp(28px,4vw,56px);display:flex;flex-direction:column;justify-content:center}
html.kz .kz-offre h3{font-family:var(--display);font-weight:800;font-size:clamp(1.6rem,2.6vw,2.4rem);line-height:1.1;letter-spacing:-.02em;margin:0;color:#fff}
html.kz[dir=rtl] .kz-offre h3{letter-spacing:0;line-height:1.35}
html.kz .kz-offre-body>p{color:var(--kz-dim);line-height:1.65;margin:16px 0 0}
html.kz .kz-tag{align-self:flex-start;display:inline-block;background:rgba(39,180,245,.12);color:var(--kz-blue-hi);border:1px solid rgba(39,180,245,.35);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;margin:0 0 18px}
html.kz .kz-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:26px 0 0}
html.kz .kz-facts div{border-top:1px solid var(--kz-line);padding-top:12px}
html.kz .kz-facts dt{color:var(--kz-dim);font-size:13px}
html.kz .kz-facts dd{margin:4px 0 0;color:#fff;font-weight:700;font-size:16px;line-height:1.35}
html.kz .kz-facts .kz-price{font-size:clamp(1.8rem,2.8vw,2.4rem);font-weight:800;color:var(--kz-blue);line-height:1}
html.kz .kz-btn{align-self:flex-start;display:inline-flex;margin-top:30px;background:var(--kz-blue);color:#03101f;border-radius:999px;padding:15px 30px;font-weight:700;text-decoration:none}
html.kz .kz-btn:hover{background:var(--kz-blue-hi)}

html.kz .kz-gallery{margin-top:clamp(56px,7vw,90px)}
html.kz .kz-gallery h3{font-family:var(--display);font-weight:800;font-size:clamp(1.4rem,2.2vw,2rem);margin:0 0 22px;color:#fff}
html.kz .kz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html.kz .kz-grid figure{margin:0;border-radius:18px;overflow:hidden;border:1px solid var(--kz-line)}
html.kz .kz-grid figure:first-child{grid-column:1/-1}
html.kz .kz-grid img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:16/9}
html.kz .kz-grid figure:first-child img{aspect-ratio:21/9}

@media (max-width:900px){
  html.kz .kz-jef-head,html.kz .kz-offre{grid-template-columns:minmax(0,1fr)}
  html.kz .kz-vids{grid-template-columns:minmax(0,1fr)}
  html.kz .kz-offre-media{min-height:0;aspect-ratio:16/10}
  html.kz .kz-offre-eco .kz-offre-media{aspect-ratio:auto}
  html.kz .kz-offre-eco .kz-offre-media video{height:min(520px,72vh)}
  html.kz .kz-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media (max-width:520px){
  html.kz .kz-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  html.kz .kz-grid{grid-template-columns:minmax(0,1fr)}
  html.kz .kz-grid figure:first-child img{aspect-ratio:16/9}
  html.kz .kz-btn{align-self:stretch;justify-content:center}
}
/* téléphone : une seule ligne logo + langues ; le contact reste sur le bouton WhatsApp flottant */
@media (max-width:520px){
  html.kz .system-header .kz-contact{display:none}
  html.kz .kz-langs{margin-inline-start:auto}
}
