/* =====================================================================
   KAS Formations — couche de design 2026 « épuré, professionnel, futuriste »
   Chargée en dernier sur chaque page : elle prime sur les styles des pages.
   Principes : angles droits, filets fins au lieu d'ombres, bleu nuit profond,
   un seul accent lumineux (cyan) réservé aux fonds sombres, orange = action.
   ===================================================================== */
:root{
  --k-night:#070d1f;      /* fonds sombres */
  --k-night-2:#0d1736;
  --k-blue:#2563eb;       /* marque, liens */
  --k-cyan:#38bdf8;       /* signal futuriste, uniquement sur fond sombre */
  --k-action:#cf4a0f;     /* boutons d'action */
  --k-mist:#f3f5f9;       /* sections alternées */
  --k-line:#d9dfe9;       /* filets */
  --k-ink:#0b1324;
  --k-text:#334155;
}

/* ---------- Typographie ---------- */
body{color:var(--k-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,.sec-title{letter-spacing:-.025em;color:inherit}
h1{line-height:1.04}
h2,.sec-title{line-height:1.12}
h3{letter-spacing:-.01em}
p{text-wrap:pretty}
h1,h2{text-wrap:balance}

/* Sur-titres : casse normale, filet d'accent */
body .sec-kicker,body .kicker,body .eyebrow{text-transform:none !important;letter-spacing:.01em !important;font-size:.86rem !important;font-weight:650}
body .sec-kicker{display:flex;align-items:center;gap:12px}
body .sec-kicker::before{content:"";width:22px;height:2px;background:currentColor;flex:none}

/* ---------- Angles droits partout (hors cercles) ---------- */
body .btn,body button,body input,body select,body textarea,body .card,body .fcard,body .tcard,
body [class*="card"],body .badge,body .tag,body .chip,body .pill,body img,body .illu,body .visual,
body details,body summary,body .kas-cc,body .kas-cc button{border-radius:0}

/* ---------- Cartes : filets, pas d'ombres ---------- */
body .card,body .fcard,body .tcard,body .offer,body .box,body article.card,
body [class$="-card"],body [class*=" card"]{box-shadow:none !important;border-color:var(--k-line)}
body .card,body .fcard,body .tcard,body .offer{transition:border-color .18s,box-shadow .18s}
body .card:hover,body .fcard:hover,body .tcard:hover,body .offer:hover{
  transform:none !important;border-color:var(--k-blue);box-shadow:inset 0 2px 0 var(--k-blue) !important}
body .fcard{background:#fff}

/* ---------- Boutons : à plat, nets ---------- */
body .btn{letter-spacing:.01em;box-shadow:none !important}
body .btn:hover{transform:none !important}
body .btn-orange,body .btn-cta{background:var(--k-action);color:#fff}
body .btn-orange:hover,body .btn-cta:hover{background:#b23c0a}
body .btn-outline{border:1px solid rgba(255,255,255,.55)}
body .btn-ghost{border:1px solid var(--k-line)}
body :focus-visible{outline:2px solid var(--k-blue);outline-offset:2px}

/* ---------- En-tête : verre dépoli et filet ---------- */
body header.main{background:rgba(255,255,255,.88);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);
  box-shadow:none;border-bottom:1px solid var(--k-line)}
body .topbar{background:var(--k-night)}

/* ---------- Sections ---------- */
body .sec.alt,body section.alt{background:var(--k-mist)}

/* ---------- Héros : grille de plan technique + balayage lumineux unique ---------- */
body .hero,body .ps .hero,body .phero,body .fhero,body .dhead,body .ehead,body .shead,body .cta-final{
  background:
    linear-gradient(rgba(56,189,248,.07) 1px,transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg,rgba(56,189,248,.07) 1px,transparent 1px) 0 0/56px 56px,
    radial-gradient(900px 480px at 88% -10%,rgba(37,99,235,.42),transparent 62%),
    radial-gradient(700px 400px at -10% 110%,rgba(56,189,248,.12),transparent 60%),
    var(--k-night);
  position:relative;isolation:isolate}
body .hero::before,body .phero::before,body .fhero::before{
  content:"";position:absolute;inset:auto 0 auto 0;top:0;height:1px;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--k-cyan),transparent);background-size:auto;opacity:0;
  animation:k-scan 2.4s cubic-bezier(.4,0,.2,1) .3s 1 forwards}
@keyframes k-scan{0%{top:0;opacity:0}12%{opacity:.9}100%{top:100%;opacity:0}}
body .hero>*,body .phero>*,body .fhero>*{position:relative;z-index:1}
body .hero h1 em,body .phero h1 em{color:#fdba74;font-style:normal}

/* Cartes dans les zones sombres */
body .hero .card,body .phero .card,body .cta-final .card{border-color:rgba(148,163,184,.28)}

/* ---------- Médias : cadres à repères (signature visuelle) ---------- */
.k-media,body .fcard .illu,body .visual-wrap{position:relative;overflow:hidden;background:var(--k-night)}
.k-media::after,body .fcard .illu::after{
  content:"";position:absolute;inset:10px;pointer-events:none;z-index:2;
  background:
    linear-gradient(var(--k-cyan),var(--k-cyan)) left top/14px 1px no-repeat,
    linear-gradient(var(--k-cyan),var(--k-cyan)) left top/1px 14px no-repeat,
    linear-gradient(var(--k-cyan),var(--k-cyan)) right top/14px 1px no-repeat,
    linear-gradient(var(--k-cyan),var(--k-cyan)) right top/1px 14px no-repeat,
    linear-gradient(var(--k-cyan),var(--k-cyan)) left bottom/14px 1px no-repeat,
    linear-gradient(var(--k-cyan),var(--k-cyan)) left bottom/1px 14px no-repeat,
    linear-gradient(var(--k-cyan),var(--k-cyan)) right bottom/14px 1px no-repeat,
    linear-gradient(var(--k-cyan),var(--k-cyan)) right bottom/1px 14px no-repeat;
  opacity:.75}
.k-media img{display:block;width:100%;height:100%;object-fit:cover}
.k-media{aspect-ratio:16/9;margin:-1px -1px 0}
.card>.k-media:first-child,.offer>.k-media:first-child,.fcard>.k-media:first-child{margin:calc(-1 * var(--k-pad,24px)) calc(-1 * var(--k-pad,24px)) 18px}
.k-media.k-inline{margin:0 0 18px}
.k-media.k-banner{aspect-ratio:3/1;margin:0 0 28px;border:1px solid var(--k-line)}
@media(max-width:700px){.k-banner{aspect-ratio:16/8}}

/* Illustrations de héros existantes */
body .hero img[src*="hero-"],body .phero img[src*="hero-"]{border:1px solid rgba(56,189,248,.25)}

/* ---------- Divers ---------- */
body hr{border:0;border-top:1px solid var(--k-line)}
body table{border-radius:0}
@media (prefers-reduced-motion:reduce){
  body .hero::before,body .phero::before,body .fhero::before{animation:none;opacity:0}
  body .card,body .fcard,body .tcard,body .offer{transition:none}
}

/* Une illustration remplace la petite icône du bloc */
.k-media+.ico,.k-media+div>.ico:first-child{display:none}
body[data-hero="hero-formations"] .hero::after{background-image:url("img/hero-formations.svg")}
.k-media+.icon-dot{display:none}
