/* ================================
   Khompta School — Premium V3
================================ */

:root{
  --primary:#0F3D2E;
  --secondary:#134E4A;
  --accent:#1E6F5C;

  --bg:#ffffff;
  --surface:#f6f8f7;
  --text:#0b1612;
  --muted:#55615c;
  --border: rgba(15,61,46,.14);

  --radius:18px;
  --container:1140px;

  --shadow: 0 18px 60px rgba(15,61,46,.14);
  --shadow2: 0 10px 30px rgba(15,61,46,.10);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--accent); }

img{ max-width:100%; height:auto; display:block; }

.ks-container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

.ks-muted{ color:var(--muted); }

/* Make <strong> green (your request) */
strong{ color:var(--primary); font-weight:700; }

/* =================================
   TOP STRIP
================================= */
.ks-topstrip{
  background: linear-gradient(90deg, rgba(15,61,46,.06), rgba(19,78,74,.04));
  border-bottom: 1px solid var(--border);
  font-size:13px;
}
.ks-topstrip-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:14px;
}
.ks-topstrip-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.ks-topstrip-item{
  color:rgba(11,22,18,.86);
}
.ks-topstrip-item:hover{ color:var(--primary); }
.ks-topstrip-dot{ color:rgba(11,22,18,.35); }
.ks-topstrip-right{
  display:flex;
  align-items:center;
  gap:8px;
}
.ks-social{
  width:28px;height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  color:rgba(11,22,18,.75);
  font-weight:700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ks-social:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  color:var(--primary);
}

/* =================================
   HEADER / NAV
================================= */
.ks-topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--border);
}

.ks-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.ks-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}
.ks-brandMark{
  width:38px;height:38px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  box-shadow: 0 14px 34px rgba(15,61,46,.18);
}
.ks-brandText strong{ display:block; letter-spacing:-.02em; }
.ks-brandText small{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  max-width: 54ch;
}

.ks-navRight{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:auto;
}

.ks-menu{
  display:flex;
  align-items:center;
  gap:10px;
}
.ks-menu a{
  padding:8px 10px;
  border-radius:12px;
  color:rgba(85,97,92,.95);
  font-weight:600;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.ks-menu a:hover{
  background:rgba(15,61,46,.06);
  transform: translateY(-1px);
  color:var(--primary);
}

/* Buttons */
.ks-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
  white-space:nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ks-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.ks-btnPrimary{
  background:var(--primary);
  color:#fff !important;
  border-color:transparent;
  box-shadow: 0 14px 34px rgba(15,61,46,.22);
}
.ks-btnPrimary:hover{ background:var(--accent); }

/* Burger */
.ks-burger{
  display:none;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  margin-left:auto;
}

/* =================================
   LAYOUT / SECTIONS
================================= */
.ks-section{ padding:92px 0; }
.ks-sectionAlt{
  background:
    radial-gradient(900px 480px at 15% 10%, rgba(19,78,74,.12), transparent 60%),
    radial-gradient(700px 380px at 85% 25%, rgba(30,111,92,.10), transparent 60%),
    rgba(19,78,74,.03);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.ks-h1{
  font-size:clamp(36px,4.6vw,58px);
  line-height:1.04;
  letter-spacing:-.035em;
  margin:14px 0 14px;
}
.ks-h2{
  font-size:32px;
  letter-spacing:-.02em;
  margin:0 0 12px;
}
.ks-lead{
  font-size:18px;
  color:var(--muted);
  max-width:70ch;
  margin:0 0 18px;
}
.ks-text{
  color:var(--muted);
  max-width:78ch;
  margin:0 0 26px;
}

.ks-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.ks-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(15,61,46,.06);
  border:1px solid var(--border);
  color:var(--secondary);
  font-weight:800;
  font-size:13px;
  box-shadow: 0 10px 26px rgba(15,61,46,.08);
}

/* Grid */
.ks-grid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:34px;
  align-items:center;
}
.ks-grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

/* Cards */
.ks-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding:26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ks-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
  border-color: rgba(15,61,46,.22);
}

/* Colorful “panel” blocks */
.ks-panel{
  border-radius: calc(var(--radius) + 10px);
  border:1px solid rgba(15,61,46,.16);
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(30,111,92,.18), transparent 60%),
    linear-gradient(180deg, rgba(15,61,46,.06), rgba(255,255,255,.9));
  box-shadow: var(--shadow);
  padding:28px;
}

/* Hero image smaller + nicer */
.ks-photoCard{
  position:relative;
  border-radius: calc(var(--radius) + 10px);
  overflow:hidden;
  border:1px solid rgba(15,61,46,.18);
  box-shadow: var(--shadow);
  max-height: 420px;
}
.ks-photoCard img{
  width:100%;
  height:420px;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.03);
}
.ks-photoCard:after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(820px 420px at 20% 20%, rgba(30,111,92,.25), transparent 55%),
    linear-gradient(180deg, rgba(15,61,46,.10), transparent 55%);
  pointer-events:none;
}

/* “Icon” dots */
.ks-dot{
  width:10px;height:10px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(30,111,92,.20);
  display:inline-block;
  margin-right:10px;
  transform: translateY(-1px);
}

/* =================================
   TRUST / LOGOS
================================= */
.ks-trustGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  align-items:stretch;
}
.ks-logoCard{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 16px;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:72px;
  box-shadow: 0 10px 26px rgba(15,61,46,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ks-logoCard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.ks-logoCard svg{ width:140px; height:34px; opacity:.95; }

/* =================================
   REVEAL ANIM
================================= */
.ks-reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.ks-reveal.is-in{
  opacity:1;
  transform: translateY(0);
}

/* =================================
   FOOTER
================================= */
.ks-footer{
  padding:52px 0 20px;
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, rgba(15,61,46,.03), transparent 40%);
}
.ks-footerGrid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1fr;
  gap:20px;
}
.ks-footerLinks{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.ks-footerBottom{
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid var(--border);
}

/* =================================
   RESPONSIVE
================================= */
@media (max-width: 980px){
  .ks-grid2{ grid-template-columns: 1fr; }
  .ks-grid3{ grid-template-columns: 1fr; }
  .ks-trustGrid{ grid-template-columns: 1fr 1fr; }

  .ks-burger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .ks-menu{
    display:none;
    flex-direction:column;
    width:100%;
    gap:8px;
  }
  .ks-menu.is-open{ display:flex; }

  .ks-nav{ flex-wrap:wrap; }
  .ks-navRight{
    width:100%;
    flex-direction:column;
    align-items:flex-start;
  }
  .ks-brandText small{ display:none; }
}

@media (max-width: 520px){
  .ks-footerGrid{ grid-template-columns:1fr; }
  .ks-topstrip-right{ display:none; }
  .ks-photoCard img{ height:320px; }
}
/* Footer dark (primary background) */
.ks-footerDark{
  background: var(--primary);
  border-top: none;
}

.ks-footerDark .ks-footerLinks a{
  color: rgba(255,255,255,.86);
}
.ks-footerDark .ks-footerLinks a:hover{
  color: #fff;
}

.ks-footerMuted{
  color: rgba(255,255,255,.75);
}

.ks-footerDark .ks-footerBottom{
  border-top: 1px solid rgba(255,255,255,.16);
}

.ks-footerSocial{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.ks-footerSocialBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:800;
  transition: transform .18s ease, background .18s ease;
}
.ks-footerSocialBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}
/* Media rows (image + panel) */
.ks-mediaRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
  margin: 22px 0 26px;
}

.ks-mediaImg{
  border-radius: calc(var(--radius) + 10px);
  overflow:hidden;
  border:1px solid rgba(15,61,46,.18);
  box-shadow: var(--shadow2);
}

.ks-mediaImg img{
  width:100%;
  height:100%;
  min-height: 260px;
  object-fit: cover;
}

@media (max-width: 980px){
  .ks-mediaRow{ grid-template-columns: 1fr; }
  .ks-mediaImg img{ min-height: 220px; }
}
/* Panel content */
.ks-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
}
.ks-panel .ks-muted{ color: rgba(11,22,18,.72); }
.ks-panel .ks-list{ color: rgba(11,22,18,.78); }
.ks-list li{ margin: 8px 0; }

/* Mini badges */
.ks-miniBadges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.ks-miniBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,61,46,.16);
  background: rgba(255,255,255,.70);
  font-weight:800;
  color: var(--secondary);
}

/* Make panel text appear nicer when revealed */
.ks-panel.ks-reveal{
  transform: translateY(18px) scale(.99);
}
.ks-panel.ks-reveal.is-in{
  transform: translateY(0) scale(1);
}
.ks-footerIcon{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:#fff;
  transition: transform .18s ease, background .18s ease;
}
.ks-footerIcon:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}
/* Header: keep menu labels on one line */
.ks-menu a{
  white-space: nowrap;
}
/* Fix CTA buttons height in catalogue section */
.ks-actions{
  align-items: center;
}

.ks-actions .ks-btn{
  align-self: flex-start;
}
/* CTA under grids (Catalogue) */
.ks-actionsBelow{
  margin-top:26px;
  justify-content:flex-start;
}

.ks-actionsBelow .ks-btn{
  min-width: 220px; /* donne un look premium */
}
.ks-actionsBelow{
  padding-top:18px;
  border-top:1px solid var(--border);
}
/* Buttons under catalogue grid */
.ks-actionsBelow{
  margin-top:26px;
  justify-content:center; /* mets flex-start si tu veux aligné gauche */
  padding-top:18px;
  border-top:1px solid var(--border);
}
.ks-actionsBelow .ks-btn{ min-width: 220px; }

/* Card animation (hover + subtle sheen) */
.ks-cardAnim{
  position:relative;
  overflow:hidden;
}
.ks-cardAnim::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(closest-side, rgba(30,111,92,.10), transparent 60%);
  transform: translateX(-25%) translateY(20%);
  opacity:0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events:none;
}
.ks-cardAnim:hover::before{
  opacity:1;
  transform: translateX(0) translateY(0);
}

/* Stagger reveal (cascade) — only for the 6 cards block */
.ks-stagger .ks-cardAnim{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.ks-reveal.is-in .ks-stagger .ks-cardAnim{
  opacity:1;
  transform: translateY(0);
}
.ks-reveal.is-in .ks-stagger .ks-cardAnim:nth-child(1){ transition-delay: .00s; }
.ks-reveal.is-in .ks-stagger .ks-cardAnim:nth-child(2){ transition-delay: .05s; }
.ks-reveal.is-in .ks-stagger .ks-cardAnim:nth-child(3){ transition-delay: .10s; }
.ks-reveal.is-in .ks-stagger .ks-cardAnim:nth-child(4){ transition-delay: .15s; }
.ks-reveal.is-in .ks-stagger .ks-cardAnim:nth-child(5){ transition-delay: .20s; }
.ks-reveal.is-in .ks-stagger .ks-cardAnim:nth-child(6){ transition-delay: .25s; }
/* ================================
   Rendez-vous — Form UI
================================ */

.ks-formWrap{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.ks-formHead{
  padding:26px 26px 0;
}

.ks-form{
  padding: 22px 26px 26px;
}

.ks-formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:14px;
}

.ks-field label{
  display:block;
  font-weight:800;
  margin:0 0 8px;
  color: rgba(11,22,18,.88);
}

.ks-field input,
.ks-field select,
.ks-field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,61,46,.18);
  background:#fff;
  outline:none;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
  font: inherit;
}

.ks-field textarea{ resize: vertical; }

.ks-field input:focus,
.ks-field select:focus,
.ks-field textarea:focus{
  border-color: rgba(30,111,92,.55);
  box-shadow: 0 0 0 6px rgba(30,111,92,.14);
}

.ks-help{
  display:block;
  margin-top:8px;
  color: var(--muted);
}

.ks-divider{
  height:1px;
  background: rgba(15,61,46,.12);
  margin: 18px 0;
}

.ks-topicChips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ks-chipBtn{
  border:1px solid rgba(15,61,46,.16);
  background: rgba(15,61,46,.05);
  color: rgba(11,22,18,.86);
  padding:10px 12px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.ks-chipBtn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.ks-chipBtn.is-on{
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15,61,46,.22);
}

.ks-formFoot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:16px;
}

.ks-consent{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color: var(--muted);
  max-width: 70ch;
}
.ks-consent input{ margin-top:3px; }

.ks-submit{
  padding:12px 18px;
}

.ks-error{
  display:none;
  margin-top:8px;
  color:#b42318;
  font-weight:700;
}

.ks-field.is-invalid .ks-error{ display:block; }
.ks-field.is-invalid input,
.ks-field.is-invalid select{
  border-color: rgba(180,35,24,.65);
  box-shadow: 0 0 0 6px rgba(180,35,24,.12);
}

.ks-success{
  display:none;
  margin-top:16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(30,111,92,.25);
  background: rgba(30,111,92,.08);
  color: rgba(11,22,18,.88);
  font-weight:800;
}

.ks-success.is-on{ display:block; }

@media (max-width: 980px){
  .ks-formGrid{ grid-template-columns: 1fr; }
  .ks-formFoot{ flex-direction:column; align-items:stretch; }
  .ks-submit{ width:100%; }
}
/* ================================
   Rendez-vous — 2 columns layout
================================ */

.ks-twoCol{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:18px;
  align-items:start;
}

.ks-side{
  position:relative;
}

.ks-sideCard{
  position: sticky;
  top: 110px; /* sous le header sticky */
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow2);
  padding:22px;
}

.ks-sideList{
  margin: 0;
  padding-left: 18px;
  color: rgba(11,22,18,.78);
}
.ks-sideList li{ margin:8px 0; }

.ks-sideMini{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.ks-sidePill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,61,46,.16);
  background: rgba(15,61,46,.05);
  color: var(--secondary);
  font-weight:800;
}

/* Make the form breathe a bit more */
.ks-formHead{ padding-bottom: 6px; }

/* Responsive */
@media (max-width: 980px){
  .ks-twoCol{ grid-template-columns: 1fr; }
  .ks-sideCard{ position: static; }
}
/* Rendez-vous – Visual contrast */
.ks-formWrap{
  background: linear-gradient(
    180deg,
    rgba(15,61,46,.04),
    #ffffff 55%
  );
  border: 1px solid rgba(15,61,46,.18);
}
.ks-twoCol{
  position: relative;
}

@media (min-width: 981px){
  .ks-twoCol::before{
    content:"";
    position:absolute;
    left: calc(100% * 1.35 / 2);
    top: 0;
    bottom: 0;
    width:1px;
    background: linear-gradient(
      transparent,
      rgba(15,61,46,.12),
      transparent
    );
  }
}
#demander-rappel{
  scroll-margin-top: 120px; /* ajuste si besoin */
}
/* ================================
   Trusted logos
================================ */

.ks-trustRow{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:22px;
  align-items:center;
  margin-top:26px;
}

.ks-logoBox{
  display:flex;
  align-items:center;
  justify-content:center;
  height:72px;
  padding:14px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow: var(--shadow2);
}

.ks-logoBox img{
  max-height:42px;
  max-width:100%;
  object-fit:contain;
  filter: grayscale(100%);
  opacity:.85;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.ks-logoBox:hover img{
  filter:none;
  opacity:1;
  transform:scale(1.03);
}

/* Responsive */
@media (max-width: 980px){
  .ks-trustRow{
    grid-template-columns: 1fr 1fr;
  }
}
/* ================================
   Formations — Catalogue UI
================================ */

.ks-catHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.ks-filterBar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  max-width: 520px;
}

.ks-filterBtn{
  border:1px solid rgba(15,61,46,.16);
  background: rgba(15,61,46,.05);
  color: rgba(11,22,18,.86);
  padding:10px 12px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.ks-filterBtn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.ks-filterBtn.is-on{
  background: var(--primary);
  border-color: transparent;
  color:#fff;
  box-shadow: 0 14px 34px rgba(15,61,46,.22);
}

.ks-courseGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

.ks-courseCard{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding:22px;
  display:flex;
  flex-direction:column;
  min-height: 310px;
}

.ks-courseTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.ks-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,61,46,.16);
  background: rgba(15,61,46,.05);
  font-weight:900;
  color: var(--secondary);
  font-size: 12px;
}

.ks-courseFormat{
  font-size:12px;
  color: var(--muted);
  font-weight:800;
}

.ks-courseTitle{
  margin:6px 0 8px;
  letter-spacing:-.01em;
}

.ks-courseText{
  margin:0 0 12px;
  color: var(--muted);
}

.ks-courseBullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(11,22,18,.78);
}
.ks-courseBullets li{ margin: 6px 0; }

.ks-courseFoot{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(15,61,46,.10);
}

.ks-link{
  font-weight:900;
  color: var(--primary);
}
.ks-link:hover{ color: var(--accent); }

.ks-courseCard.is-hidden{ display:none; }

.ks-catCta{
  margin-top:22px;
}
.ks-catCtaBox{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background: #fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow2);
  padding:18px 18px;
}

/* Responsive */
@media (max-width: 980px){
  .ks-catHeader{ flex-direction:column; }
  .ks-filterBar{ justify-content:flex-start; max-width:none; }
  .ks-courseGrid{ grid-template-columns: 1fr; }
  .ks-catCtaBox{ flex-direction:column; align-items:flex-start; }
}
/* Clickable cards */
.ks-courseCard[data-link]{
  cursor: pointer;
}
.ks-courseCard[data-link]:hover{
  transform: translateY(-2px);
}
/* ================================
   Formations — Make cards "clickable"
================================ */

/* whole card hover: darker + lift + border */
.ks-courseCard[data-link]{
  position: relative;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.ks-courseCard[data-link]::after{
  content: "↗";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(15,61,46,.14);
  background: rgba(15,61,46,.04);
  color: rgba(11,22,18,.70);
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
  pointer-events: none;
}

.ks-courseCard[data-link]:hover{
  transform: translateY(-4px);
  border-color: rgba(15,61,46,.22);
  background: linear-gradient(180deg, rgba(15,61,46,.04), #fff 55%);
  box-shadow: 0 22px 55px rgba(15,61,46,.14);
}

.ks-courseCard[data-link]:hover::after{
  opacity: 1;
  transform: translateY(0);
  background: rgba(15,61,46,.08);
}

/* "loupe" feel: zoom the badge + title slightly (subtle) */
.ks-courseCard[data-link] .ks-courseTitle,
.ks-courseCard[data-link] .ks-badge{
  transition: transform .18s ease, color .18s ease;
}

.ks-courseCard[data-link]:hover .ks-courseTitle{
  transform: translateY(-1px);
}

.ks-courseCard[data-link]:hover .ks-badge{
  transform: translateY(-1px);
}

/* Bottom-right discover button (visual cue) */
.ks-discoverBtn{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,61,46,.16);
  background: rgba(15,61,46,.05);
  color: rgba(11,22,18,.86);
  font-weight: 900;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
  user-select: none;
}

.ks-courseCard[data-link]:hover .ks-discoverBtn{
  transform: translateY(-1px);
  background: rgba(15,61,46,.10);
  box-shadow: 0 14px 34px rgba(15,61,46,.12);
}

.ks-discoverBtn span{
  display:inline-flex;
  transform: translateX(0);
  transition: transform .16s ease;
}
.ks-courseCard[data-link]:hover .ks-discoverBtn span{
  transform: translateX(2px);
}

/* keep inner links readable */
.ks-courseFoot{
  display:flex;
  align-items:center;
  gap: 12px;
}

/* Keyboard focus (important for accessibility) */
.ks-courseCard[data-link]:focus{
  outline: none;
  box-shadow: 0 0 0 6px rgba(30,111,92,.16);
  border-color: rgba(30,111,92,.45);
}
/* ================================
   E-learning UI
================================ */

.ks-badgeEL{
  border-color: rgba(255,190,46,.35);
  background: rgba(255,190,46,.16);
  color: rgba(11,22,18,.92);
}

/* Pill group in hub header */
.ks-elearnNote{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  max-width: 520px;
}
.ks-elearnPill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,190,46,.35);
  background: rgba(255,190,46,.16);
  font-weight:900;
  color: rgba(11,22,18,.92);
}

/* Small tag in course foot */
.ks-elTag{
  margin-left:auto;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(15,61,46,.14);
  background: rgba(15,61,46,.05);
  font-weight:900;
  color: rgba(11,22,18,.78);
  font-size: 12px;
}

/* E-learning CTA button (flashy but clean) */
.ks-btnEL{
  border: 1px solid rgba(255,190,46,.45);
  background: linear-gradient(180deg, rgba(255,190,46,.30), rgba(255,190,46,.18));
  color: rgba(11,22,18,.92);
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(255,190,46,.16);
}
.ks-btnEL:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(255,190,46,.22);
}

/* Price box layout */
.ks-priceRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.ks-priceBox{
  min-width: 220px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(15,61,46,.14);
  background: rgba(15,61,46,.04);
}

.ks-priceLabel{
  font-weight:900;
  color: rgba(11,22,18,.78);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ks-priceValue{
  font-weight: 980;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.ks-priceSub{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 980px){
  .ks-elearnNote{ justify-content:flex-start; max-width:none; }
  .ks-elTag{ margin-left:0; }
}
/* Mini E-learning button inside cards */
.ks-miniEL{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,190,46,.45);
  background: linear-gradient(180deg, rgba(255,190,46,.30), rgba(255,190,46,.18));
  color: rgba(11,22,18,.92);
  font-weight: 950;
  font-size: 12px;
  box-shadow: 0 14px 34px rgba(255,190,46,.14);
  transition: transform .16s ease, box-shadow .16s ease;
}
.ks-miniEL:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(255,190,46,.20);
}
/* Fix alignment for RDV + e-learning CTA in module cards */
.ks-courseFoot{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;            /* keep on one line (desktop) */
}

.ks-courseFoot .ks-link{
  white-space:nowrap;          /* prevents "Programmer un rappel" from breaking */
}

.ks-miniEL{
  white-space:nowrap;          /* prevents the e-learning CTA from breaking */
  margin-left:auto;            /* pushes it to the right */
  padding:8px 12px;            /* a bit tighter */
}

/* Mobile: stack nicely */
@media (max-width: 560px){
  .ks-courseFoot{
    flex-wrap:wrap;
  }
  .ks-miniEL{
    margin-left:0;
    width:100%;
    justify-content:center;
  }
  .ks-courseFoot .ks-link{
    width:100%;
  }
}
/* ================================
   Premium E-learning CTA badge
================================ */

.ks-courseFoot{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
}

.ks-courseFoot .ks-link{
  white-space:nowrap;
}

/* CTA badge */
.ks-elCTA{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,190,46,.55);
  background: linear-gradient(180deg, rgba(255,190,46,.34), rgba(255,190,46,.16));
  color: rgba(11,22,18,.92);
  font-weight: 980;
  font-size: 12px;
  letter-spacing: .01em;
  box-shadow: 0 18px 46px rgba(255,190,46,.16);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  white-space:nowrap;
}

.ks-elCTA:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 62px rgba(255,190,46,.22);
  filter: saturate(1.05);
}

/* Small dot */
.ks-elDot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(11,22,18,.92);
  opacity:.9;
  box-shadow: 0 0 0 6px rgba(255,190,46,.20);
}

/* Arrow micro motion */
.ks-elArrow{
  display:inline-flex;
  transform: translateX(0);
  transition: transform .16s ease;
}
.ks-elCTA:hover .ks-elArrow{
  transform: translateX(2px);
}

/* Optional: make e-learning cards slightly "tagged" */
.ks-courseCard.has-elearning .ks-courseTop .ks-courseFormat{
  font-weight: 950;
}

/* Mobile stack clean */
@media (max-width: 560px){
  .ks-courseFoot{
    flex-wrap:wrap;
  }
  .ks-courseFoot .ks-link{
    width:100%;
  }
  .ks-elCTA{
    margin-left:0;
    width:100%;
    justify-content:center;
  }
}
/* ================================
   FIX overflow CTA e-learning
================================ */

/* Ensure cards never overflow */
.ks-courseCard{
  overflow: hidden;
}

/* Secure footer layout inside cards */
.ks-courseFoot{
  max-width: 100%;
}

/* Prevent CTA from pushing card width */
.ks-elCTA{
  max-width: 100%;
  box-sizing: border-box;
}

/* Safety: allow text to wrap if ever needed */
.ks-elCTA{
  white-space: nowrap;
}

/* Mobile already handled, but double safety */
@media (max-width: 560px){
  .ks-elCTA{
    width: 100%;
  }
}
/* ================================
   FIX: E-learning badge overflow (bulletproof)
================================ */

/* Ensure card can't visually spill outside */
.ks-courseCard{ 
  overflow: hidden !important; 
}

/* Footer must be allowed to shrink its children */
.ks-courseFoot{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  max-width:100% !important;
  min-width:0 !important;
  flex-wrap:wrap !important;   /* prevents overflow on tight widths */
}

/* Make the left link able to shrink without pushing the badge out */
.ks-courseFoot .ks-link{
  min-width:0 !important;
  white-space:nowrap !important;
}

/* Target BOTH possible classes (you may still have ks-miniEL) */
.ks-courseFoot .ks-elCTA,
.ks-courseFoot .ks-miniEL{
  margin-left:auto !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
}

/* If it still gets tight, allow the badge to go to next line cleanly */
@media (max-width: 900px){
  .ks-courseFoot .ks-elCTA,
  .ks-courseFoot .ks-miniEL{
    margin-left:0 !important;
  }
}
/* ================================
   FIX: E-learning badge overflow (bulletproof)
================================ */

/* Ensure card can't visually spill outside */
.ks-courseCard{ 
  overflow: hidden !important; 
}

/* Footer must be allowed to shrink its children */
.ks-courseFoot{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  max-width:100% !important;
  min-width:0 !important;
  flex-wrap:wrap !important;   /* prevents overflow on tight widths */
}

/* Make the left link able to shrink without pushing the badge out */
.ks-courseFoot .ks-link{
  min-width:0 !important;
  white-space:nowrap !important;
}

/* Target BOTH possible classes (you may still have ks-miniEL) */
.ks-courseFoot .ks-elCTA,
.ks-courseFoot .ks-miniEL{
  margin-left:auto !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
}

/* If it still gets tight, allow the badge to go to next line cleanly */
@media (max-width: 900px){
  .ks-courseFoot .ks-elCTA,
  .ks-courseFoot .ks-miniEL{
    margin-left:0 !important;
  }
}
/* ================================
   FIX: RDV + E-learning badge layout (clean)
================================ */

/* Card never spills */
.ks-courseCard{ overflow:hidden !important; }

/* Footer layout: 1 line when possible */
.ks-courseFoot{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  flex-wrap:nowrap !important;     /* keep on one line by default */
  min-width:0 !important;
}

/* Allow left link to shrink */
.ks-courseFoot .ks-link{
  min-width:0 !important;
  white-space:nowrap !important;
}

/* Badge stays to the right */
.ks-courseFoot .ks-elCTA,
.ks-courseFoot .ks-miniEL{
  margin-left:auto !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

/* When space is tight: stack cleanly (badge full width, aligned left) */
@media (max-width: 860px){
  .ks-courseFoot{
    flex-wrap:wrap !important;
  }
  .ks-courseFoot .ks-link{
    width:100% !important;
  }
  .ks-courseFoot .ks-elCTA,
  .ks-courseFoot .ks-miniEL{
    margin-left:0 !important;      /* IMPORTANT: no right shift */
    width:100% !important;
    justify-content:center !important; /* premium centered CTA */
  }
}
/* ================================
   FINAL: E-learning CTA (smaller & clean)
================================ */

.ks-courseFoot{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:nowrap !important;
  min-width:0 !important;
}

/* Left CTA */
.ks-courseFoot .ks-link{
  min-width:0 !important;
  white-space:nowrap !important;
}

/* E-learning CTA — compact & premium */
.ks-elCTA{
  margin-left:auto !important;
  padding:6px 10px !important;          /* smaller */
  font-size:11px !important;            /* smaller text */
  font-weight:900 !important;
  border-radius:999px !important;
  border:1px solid rgba(15,61,46,.22) !important;
  background: rgba(15,61,46,.06) !important;
  color: rgba(11,22,18,.85) !important;
  box-shadow:none !important;            /* remove heavy shadow */
  white-space:nowrap !important;
}

/* Remove dot & arrow if present */
.ks-elCTA .ks-elDot,
.ks-elCTA .ks-elArrow{
  display:none !important;
}

/* Hover: very subtle */
.ks-elCTA:hover{
  background: rgba(15,61,46,.10) !important;
  transform:none !important;
}

/* Tablet / mobile: stack cleanly, no overlap */
@media (max-width: 860px){
  .ks-courseFoot{
    flex-wrap:wrap !important;
  }
  .ks-courseFoot .ks-link{
    width:100% !important;
  }
  .ks-elCTA{
    margin-left:0 !important;
    width:auto !important;
  }
}
/* ================================
   Steps (Méthode en 4 étapes)
================================ */

.ks-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  margin-bottom:10px;
  border-radius:50%;
  background:rgba(15,61,46,.08);
  color:#0F3D2E;
  font-weight:900;
  font-size:13px;
  letter-spacing:.04em;
}

.ks-grid4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

@media (max-width: 1024px){
  .ks-grid4{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 640px){
  .ks-grid4{
    grid-template-columns:1fr;
  }
  .ks-step{
    width:34px;
    height:34px;
    font-size:12px;
  }
}
/* Fix lisibilité listes dans sections claires */
.ks-sectionAlt .ks-list li,
.ks-section .ks-list li {
  color: #0F3D2E;
}
/* ===== Reveal safe: animé seulement si JS actif ===== */
.ks-reveal{
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

html.ks-js .ks-reveal{
  opacity: 0;
  transform: translateY(10px);
}

html.ks-js .ks-reveal.is-visible{
  opacity: 1;
  transform: none;
}
/* ================================
   Formations / E-learning cards
================================ */

/* Header catalogue (titre + CTA) */
.ks-catHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

/* Grille de cartes */
.ks-courseGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-top:18px;
}

@media (max-width: 1024px){
  .ks-courseGrid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px){
  .ks-courseGrid{ grid-template-columns:1fr; }
}

/* Carte module */
.ks-courseCard{
  position:relative;
  border-radius:18px;
  padding:18px;
  background:#fff;
  border:1px solid rgba(15,61,46,.12);
  box-shadow:0 10px 30px rgba(0,0,0,.04);
  cursor:pointer;
  overflow:hidden;
  min-height:260px;
  display:flex;
  flex-direction:column;
}

.ks-courseTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.ks-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(15,61,46,.08);
  color:#0F3D2E;
  font-weight:700;
  font-size:12px;
}

.ks-courseFormat{
  font-size:12px;
  color:rgba(15,61,46,.75);
  font-weight:600;
}

.ks-courseTitle{
  margin:6px 0 6px;
  font-size:18px;
  line-height:1.2;
}

.ks-courseText{
  margin:0 0 12px;
  color:rgba(15,61,46,.88);
}

/* Puces internes */
.ks-courseBullets{
  margin:0 0 14px;
  padding-left:18px;
  color:rgba(15,61,46,.9);
}

.ks-courseBullets li{
  margin:6px 0;
}

/* Footer carte : lien + CTA */
.ks-courseFoot{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:12px;
  border-top:1px solid rgba(15,61,46,.10);
}

.ks-link{
  color:#0F3D2E;
  text-decoration:none;
  font-weight:700;
}

.ks-link:hover{ text-decoration:underline; }

/* CTA e-learning (petit bouton) */
.ks-elCTA{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  background:#0F3D2E;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
}

.ks-elCTA:hover{
  background:#134E4A;
}

/* Hover premium */
.ks-cardAnim{
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ks-cardAnim:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 40px rgba(0,0,0,.08);
  border-color:rgba(15,61,46,.20);
}

/* ================================
   Stagger (si utilisé)
   -> sécurité : visible même si JS KO
================================ */
.ks-stagger > *{
  opacity:1;
  transform:none;
}

/* si JS actif, on anime */
html.ks-js .ks-stagger > *{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease;
}
html.ks-js .ks-stagger.is-visible > *{
  opacity:1;
  transform:none;
}
html.ks-js .ks-stagger.is-visible > *:nth-child(2){ transition-delay:.06s; }
html.ks-js .ks-stagger.is-visible > *:nth-child(3){ transition-delay:.12s; }
html.ks-js .ks-stagger.is-visible > *:nth-child(4){ transition-delay:.18s; }
html.ks-js .ks-stagger.is-visible > *:nth-child(5){ transition-delay:.24s; }
html.ks-js .ks-stagger.is-visible > *:nth-child(6){ transition-delay:.30s; }
/* HOTFIX: ré-affiche les cartes même si la classe .is-visible n'est pas posée */
.ks-stagger > *{
  opacity: 1 !important;
  transform: none !important;
}
.ks-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ks-logo {
  height: 48px;      /* ajuste si besoin */
  width: auto;
  display: block;
}

.ks-brandText strong {
  display: block;
  line-height: 1.2;
}

.ks-brandText small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}
/* RDV form: chips active + messages */
.ks-chipBtn.is-active{
  background:#0F3D2E;
  color:#fff;
  border-color:rgba(15,61,46,.25);
}

#ks-form-success,
#ks-form-error{
  display:none;
  margin-top:14px;
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
}

#ks-form-success{
  background:rgba(15,61,46,.10);
  color:#0F3D2E;
  border:1px solid rgba(15,61,46,.18);
}

#ks-form-error{
  background:rgba(220, 38, 38, .08);
  color:#7f1d1d;
  border:1px solid rgba(220, 38, 38, .18);
}
/* UX – cursor pointer on clickable buttons */
.ks-btn,
.ks-submit,
button[type="submit"] {
  cursor: pointer;
}
.ks-btn:hover {
  transform: translateY(-1px);
}

