/* =====================================================
   CSK BAT : page « Projets »
   (le hero et les sections .csk-ap viennent de apropos.css)
   ===================================================== */


/* ---------- Filtres ---------- */
.csk-pj-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.csk-pj-filter {
  padding: 10px 24px; border-radius: 999px; cursor: pointer;
  background: #FFFFFF; border: 1px solid rgba(30,90,168,.25);
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: .95rem;
  color: #1E5AA8 !important;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.csk-pj-filter:hover { border-color: #1E5AA8; }
.csk-pj-filter.is-active { background: #1E5AA8; border-color: #1E5AA8; color: #FFFFFF !important; }

/* ---------- Grille de projets ---------- */
.csk-pj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.csk-pj-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; cursor: pointer;
  background: #0B2D5B; text-align: left;
  box-shadow: 0 18px 40px rgba(30,90,168,.16);
  transition: transform .35s ease, box-shadow .35s ease;
}
.csk-pj-card:hover { transform: translateY(-8px); box-shadow: 0 28px 56px rgba(30,90,168,.28); }
.csk-pj-card.is-hidden { display: none; }
.csk-pj-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.csk-pj-card:hover img { transform: scale(1.06); }
.csk-pj-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,45,91,0) 45%, rgba(11,45,91,.92) 100%);
}

.csk-pj-count {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92);
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: .78rem; color: #1E5AA8;
}
.csk-pj-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 26px; }
.csk-pj-title {
  display: block; margin-bottom: 4px;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.3rem;
  color: #FFFFFF !important;
}
.csk-pj-meta { display: block; font-size: .9rem; color: #E6F4FB !important; }

/* ---------- Bandeau final ---------- */
.csk-pj-cta { max-width: 760px; margin: 0 auto; text-align: center; }
.csk-ap .csk-pj-cta h2 { text-align: center; }
.csk-pj-cta p { margin: 0 0 32px; font-size: 1.1rem; line-height: 1.7; color: #E6F4FB !important; }
.csk-pj-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; background: #FFFFFF;
  font-family: "Manrope", sans-serif; font-weight: 800;
  color: #1E5AA8 !important; text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.csk-pj-btn:hover { background: #7CC6E8; color: #0B2D5B !important; transform: translateY(-3px); }

/* ---------- Galerie plein écran ---------- */
.csk-lb {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center;
  padding: 70px 90px; background: rgba(5,20,45,.94);
}
.csk-lb.is-open { display: flex; }
.csk-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.csk-lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #FFFFFF; font-size: 1.2rem;
  transition: background .25s ease;
}
.csk-lb-btn:hover { background: #1E5AA8; }
.csk-lb-close { top: 18px; right: 18px; }
.csk-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.csk-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.csk-lb-cap {
  position: absolute; left: 0; right: 0; bottom: 20px; padding: 0 20px;
  text-align: center; font-size: .95rem; color: #E6F4FB;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .csk-pj-grid { grid-template-columns: repeat(2, 1fr); }
  .csk-pj-stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .csk-pj-stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 575px) {
  .csk-pj-grid { grid-template-columns: 1fr; }
  .csk-lb { padding: 70px 16px 60px; }
  .csk-lb-prev, .csk-lb-next { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; }
  .csk-lb-prev { left: 16px; }
  .csk-lb-next { right: 16px; }
  .csk-lb-cap { bottom: 80px; }
}
/* ---------- Solutions (onglets) ---------- */
.csk-so-wrap {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px;
  margin-top: 48px; align-items: start;
}
.csk-so-tabs { display: flex; flex-direction: column; border-left: 2px solid rgba(30,90,168,.15); }
.csk-so-tab {
  margin: 0 0 0 -2px; padding: 16px 0 16px 24px; cursor: pointer; text-align: left;
  background: none; border: 0; border-left: 2px solid transparent;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.3;
  color: #5B6770 !important;
  transition: color .25s ease, border-color .25s ease;
}
.csk-so-tab:hover { color: #1E5AA8 !important; }
.csk-so-tab.is-active { color: #0B2D5B !important; font-weight: 800; border-left-color: #1E5AA8; }
.csk-so-tab:focus-visible { outline: 3px solid #7CC6E8; outline-offset: 2px; }

.csk-so-panel { padding: 44px 48px; border-radius: 24px; background: #E6F4FB; }
.csk-so-panel[hidden] { display: none; }
.csk-so-panel h3 {
  margin: 0 0 28px;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.8rem; line-height: 1.2;
  color: #0B2D5B !important;
}
.csk-so-panel h4 {
  margin: 0 0 6px;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: .95rem;
  color: #1E5AA8 !important;
}
.csk-so-panel p {
  max-width: 62ch; margin: 0 0 24px;
  font-size: 1.05rem; line-height: 1.7; color: #3E4A54 !important;
}
.csk-so-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.csk-so-points li {
  padding: 8px 16px; border-radius: 999px; background: #FFFFFF;
  font-family: "Manrope", sans-serif; font-weight: 700; font-size: .9rem;
  color: #1E5AA8 !important;
}

@media (max-width: 991px) {
  .csk-so-wrap { grid-template-columns: 1fr; gap: 28px; }
  .csk-so-tabs {
    flex-direction: row; overflow-x: auto; border-left: 0;
    border-bottom: 2px solid rgba(30,90,168,.15);
  }
  .csk-so-tab {
    flex: 0 0 auto; margin: 0 0 -2px; padding: 12px 18px; white-space: nowrap;
    border-left: 0; border-bottom: 2px solid transparent;
  }
  .csk-so-tab.is-active { border-bottom-color: #1E5AA8; }
}
@media (max-width: 575px) {
  .csk-so-panel { padding: 28px 22px; }
  .csk-so-panel h3 { font-size: 1.45rem; margin-bottom: 22px; }
}

/* clients : bandeau bleu foncé défilant sur fond bleu ciel */
.csk-cl-row {
  margin-top: 40px;
  background: #1E5AA8;
  padding: 30px 0;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(11, 45, 91, .22);
}
.csk-cl-track {
  display: flex;
  width: max-content;
  animation: cskClScroll 45s linear infinite;
}
.csk-cl-row:hover .csk-cl-track { animation-play-state: paused; }
.csk-cl-group { display: flex; align-items: center; flex-shrink: 0; }
.csk-cl-group span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 46px;
}
.csk-cl-group img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
@keyframes cskClScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .csk-cl-group img { height: 42px; }
  .csk-cl-group span { padding: 0 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .csk-cl-track { animation: none; }
  .csk-cl-row { overflow-x: auto; }
}