/* Case Study Page Styles */

:root {
  --police: "Dm Sans", Arial, sans-serif;
  --bs-font-sans-serif: "Dm Sans", Arial, sans-serif;
  --police-title: "Space Grotesk Bold", Arial, sans-serif;
  --bs-primary: #5D56F1;
  --bs-primary-dark: #4f48da;
  --bs-secondary: #13E9C3;
  --bs-secondary-dark: #13be9f;
  --bs-secondary-rgb: 80, 187, 168;
  --bs-link-color: var(--bs-primary);
  --bs-link-color-rgb: 93, 86, 241;;
  --bs-border-radius-lg: 5rem;
  --bs-border-radius: 2rem;
  --bs-body-font-size: 1.2rem;
  --bs-body-color: #111;

}
.case-study {
  padding-top: 24px;
  padding-bottom: 64px;
}

.case-study .cs-section {
  margin-bottom: 48px;
}

.case-study .cs-section h2 {
  position: relative;
  margin: 0 0 clamp(0.85rem, 2vw, 1.15rem) 0;
  padding: .5rem 1rem;
  font-size: clamp(1.35rem, 0.95rem + 1.35vw, 1.9rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--bs-body-color);
}

.case-study .cs-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: var(--bs-secondary);
}

.case-study .cs-section p {
  margin: 0 0 12px 0;
}

.case-study .cs-section ul {
  margin: 0 0 12px 18px;
}

/* Intro/meta block */
.case-study .cs-intro {
  margin-top: 8px;
  padding: 20px;
  background-color: var(--bs-primary);
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8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07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==");
  background-blend-mode: overlay;
  background-size: 100px;
  background-position: center;
  background-repeat: repeat;
  border-radius: 10px;
  color: #fff;
  p:last-child {
    margin-bottom: 0;
  }
}

/* Aside — colonne latérale */
.case-study .cs-aside {
  position: sticky;
  top: clamp(72px, 10vh, 104px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 1.125rem;
}

.case-study .cs-aside::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 4px;
  background: var(--bs-primary);
  opacity: 0.2;
  pointer-events: none;
}

.case-study .cs-aside .cs-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
}

/* Titres cartes : même logique que les H2 du corps (accent à gauche), plus compacts */
.case-study .cs-aside .cs-card h3,
.case-study .cs-aside .cs-card h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.52);
  margin: 0 0 0.85rem 0;
  padding-left: 12px;
  border-left: 3px solid var(--bs-primary);
  line-height: 1.35;
}



.case-study .cs-aside .cs-card--cta h3,
.case-study .cs-aside .cs-card--cta h2 {
  text-transform: none;
  font-size: 1.2rem;
  letter-spacing: normal;
  color: #111;
  border-left-color: var(--bs-secondary);
}

/* « En bref » : liste sans puces natives, pastilles vert d’eau */
.case-study .cs-aside .cs-card--summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study .cs-aside .cs-card--summary li {
  position: relative;
  padding-left: 1rem;
  margin: 0 0 0.65rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.78);
}

.case-study .cs-aside .cs-card--summary li:last-child {
  margin-bottom: 0;
}

.case-study .cs-aside .cs-card--summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bs-secondary);
}

/* Autres listes dans l’aside (contenu CMS) */
.case-study .cs-aside .cs-card:not(.cs-card--summary) ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(17, 17, 17, 0.78);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.case-study .cs-aside .cs-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.72);
  margin: 0 0 0.65rem 0;
}

.case-study .cs-aside .cs-card p:last-child {
  margin-bottom: 0;
}

/* Carte CTA */
.case-study .cs-aside .cs-card--cta {
  background: #f7f7fd;
  border-color: rgba(93, 86, 241, 0.14);
  box-shadow:
  0 1px 0 rgba(255, 255, 255, 0.9) inset,
  0 12px 36px -24px rgba(93, 86, 241, 0.35);
}

.case-study .cs-aside .cs-card--cta .cs-aside__lead {
  margin-bottom: 1rem;
  color: rgba(17, 17, 17, 0.68);
}

.case-study .cs-aside .cs-card--cta .cs-aside__actions {
  margin: 0;
}

.case-study .cs-aside .cs-aside__btn-contact {
  display: block;
  width: 100%;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* Nuage de tags « Technologies » (carte latérale, placeholder case_stack) */
.case-study .cs-aside .cs-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 0;
}

.case-study .cs-aside .cs-stack-tags .badge {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  border-radius: 999px !important;
  color: var(--bs-primary, #5d56f1) !important;
  background: #f3f2ff !important;
  border: 1px solid rgba(93, 86, 241, 0.2) !important;
}

/* Feature list bullets */
.case-study .cs-fonctionnalites ul li {
  margin-bottom: 6px;
}

/* Results highlight */


.case-study .cs-resultats strong,
.case-study .cs-resultats b {
  color: var(--bs-primary);
}


.case-study .cs-tech .badge,
.case-study .cs-tech a.badge {
  display: inline-block !important;
  padding: 6px 10px !important;
  margin: 0 8px 8px 0 !important;
  border: 1px solid var(--bs-primary) !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  background: var(--bs-primary) !important;
  color: #fff !important;
  transition: all 0.3s ease;
  &:hover{
    background: var(--bs-primary-dark) !important;
    color: #fff;
  }
}

.case-study .cs-aside .cs-card:has(img),
.case-study .cs-aside .cs-card.gallery {
  padding: 12px;
}

.case-study .cs-aside .cs-card .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.case-study .cs-aside .cs-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}


.case-study .cs-section + .cs-section {
  padding-top: 8px;
}

/* —— Galerie principale (étude de cas) —— */
.case-study .cs-gallery {
  overflow: hidden;
}

.case-study .cs-gallery::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: radial-gradient(
    circle at center,
    rgba(93, 86, 241, 0.12) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.case-study .cs-gallery__head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(16px, 3vw, 24px);
}

.case-study .cs-gallery__head h2 {
  margin-bottom: 8px;
}

.case-study .cs-gallery__intro {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.72);
}

.case-study .cs-gallery__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 16px);
  grid-auto-rows:  minmax(90px, 12vw);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 991.98px) {
  .case-study .cs-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(100px, 22vw);
  }
}

@media (max-width: 575.98px) {
  .case-study .cs-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(96px, 28vw);
  }
}

/* Tuile « hero » : première image plus visible */
@media (min-width: 768px) {
  .case-study .cs-gallery__grid > .cs-gallery__tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.case-study .cs-gallery__tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  outline: none;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.2);
  transition:
  transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
  box-shadow 0.35s ease,
  border-color 0.25s ease;
  padding: 5px;
  background: #fff;
}

.case-study .cs-gallery__tile:hover {
  border-color: rgba(93, 86, 241, 0.25);
}

.case-study .cs-gallery__tile:focus-visible {
  box-shadow:
  0 0 0 3px #fff,
  0 0 0 6px var(--bs-primary);
}

.case-study .cs-gallery__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 9px;
}

.case-study .cs-gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study .cs-gallery__tile:hover .cs-gallery__frame img {
  transform: scale(1.08);
}



.case-study .cs-gallery__tile:hover::after {
  opacity: 0.75;
}

.case-study .cs-gallery__zoom {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(6px);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition:
  opacity 0.3s ease,
  transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}

.case-study .cs-gallery__tile:hover .cs-gallery__zoom,
.case-study .cs-gallery__tile:focus-visible .cs-gallery__zoom {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Contenu CMS : liens / images sans classes démo */
.case-study .cs-gallery .gallery-grid:not(.cs-gallery__grid) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.case-study .cs-gallery .gallery-grid:not(.cs-gallery__grid) a {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study .cs-gallery .gallery-grid:not(.cs-gallery__grid) a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(93, 86, 241, 0.35);
}

.case-study .cs-gallery .gallery-grid:not(.cs-gallery__grid) img {
  width: 100%;
  height: auto;
  display: block;
}

/* Plugin dossier Filer : au-delà de 9 fichiers, entrées lightbox hors grille */
.cs-gallery__folder-wrap {
  position: relative;
}

.cs-gallery__lightbox-extras {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cs-gallery__lightbox-extras .cs-gallery__lightbox-extra {
  position: absolute;
  left: 0;
  top: 0;
}

.cs-gallery__folder-wrap > .cs-gallery__see-all-wrap {
  margin: clamp(12px, 2vw, 20px) 0 0;
  text-align: center;
  margin-top: 20px !important;
}

.cs-gallery__see-all.btn-outline-primary {
  border-color: var(--bs-primary, #5d56f1);
  color: var(--bs-primary, #5d56f1);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
  background 0.25s ease,
  color 0.25s ease,
  border-color 0.25s ease,
  box-shadow 0.25s ease;
}

.cs-gallery__see-all.btn-outline-primary:hover {
  background: var(--bs-primary, #5d56f1);
  border-color: var(--bs-primary, #5d56f1);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(93, 86, 241, 0.55);
}

/* Responsive */
@media (max-width: 991.98px) {
  .case-study {
    padding-top: 8px;
    padding-bottom: 32px;
  }
  .case-study .cs-aside {
    position: static;
    top: auto;
    padding-left: 0;
  }

  .case-study .cs-aside::before {
    display: none;
  }
}

/* Testimonials carousel */
.case-study .ts-carousel {
  position: relative;
  padding: 16px 48px;
}

.case-study .ts-track {
  overflow: hidden;
  display: flex;
}

.case-study .ts-slide {
  display: none;
  flex: 0 0 100%;
  min-height: 340px;
}
.ts-wrapper{
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 32px;
  background: #f5F5F5;
  border: 1px solid #EEE;
  border-radius: 12px;
  padding: 36px;
  margin-top: auto;
  margin-bottom: auto;
  height: 100%;
}

.case-study .ts-slide.is-active {
  display: block;
}

.case-study .ts-person {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
  color: var(--bs-primary);
}

.case-study .ts-person img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.case-study .ts-content {
  display: flex;
  flex-direction: column;
  gap: 5px;

  *{
    margin: 0 !important;
  }
  h3{
    font-weight: 700;
    color: var(--bs-primary);
    &::after{
      content: "";
      display: block;
      width: 50px;
      height: 5px;
      background: var(--bs-secondary);
      margin-bottom: 10px;
      border-radius: 5px;
    }
  }
  strong{
    font-size: 16px;
    font-weight: 700;
  }
}


.case-study .ts-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #EEE;
  background: var(--bs-primary);
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  &:hover{
    background: var(--bs-primary-dark);
    color: #fff;
  }
}

.case-study .ts-prev { left: 8px; }
.case-study .ts-next { right: 8px; }

.case-study .ts-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.case-study .ts-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  appearance: none;
  border: none;
  background: #DDD;
  cursor: pointer;
}

.case-study .ts-dots button.is-active { background: #5D56F1; }

/* Testimonials carousel — responsive */
@media (max-width: 768px) {
  .case-study .ts-carousel {
    padding: 12px 40px;
  }
  .case-study .ts-slide {
    min-height: 300px;
  }
  .case-study .ts-wrapper {
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 24px;
  }
  .case-study .ts-person {
    gap: 24px;
    margin-bottom: 16px;
  }
  .case-study .ts-person img {
    width: 72px;
    height: 72px;
  }
  .case-study .ts-nav {
    width: 32px;
    height: 32px;
  }
  .case-study .ts-prev { left: 4px; }
  .case-study .ts-next { right: 4px; }
  .case-study .ts-dots {
    margin-top: 24px;
  }
}

@media (max-width: 576px) {
  .case-study .ts-carousel {
    padding: 12px 36px;
  }
  .case-study .ts-slide {
    min-height: auto;
  }
  .case-study .ts-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }
  .case-study .ts-person {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    text-align: center;
  }
  .case-study .ts-person img {
    width: 64px;
    height: 64px;
  }
  .case-study .ts-content {
    align-items: center;
  }
  .case-study .ts-content h3::after {
    margin-left: auto;
    margin-right: auto;
  }
  .case-study .ts-nav {
    width: 28px;
    height: 28px;
  }
  .case-study .ts-prev { left: 2px; }
  .case-study .ts-next { right: 2px; }
  .case-study .ts-dots {
    margin-top: 20px;
    gap: 4px;
  }
  .case-study .ts-dots button {
    width: 10px;
    height: 10px;
  }
}

