/* ================================================
   ÉTUDES DE CAS — Linear-style layout (light mode)
   ================================================ */

/* ---------- Layout containers ---------- */
.cs-layout {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

.cs-layout--narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Spacers ---------- */
.cs-spacer--lg { height: 96px; }
.cs-spacer--md { height: 64px; }
.cs-spacer--sm { height: 48px; }

/* ---------- HERO ---------- */
.cs-hero {
  padding-top: 80px;
}

.cs-hero__title {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -1.4px;
  color: #171717;
  margin: 0;
  max-width: 600px;
}

.cs-hero__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #686868;
  margin: 20px 0 0;
  max-width: 600px;
}

.cs-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  color: #171717;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.cs-hero__cta:hover {
  gap: 10px;
}

.cs-hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.cs-hero__cta:hover svg {
  transform: translateX(4px);
}

/* ---------- CARDS GRID ---------- */
.cs-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

/* ---------- CARD (shared) ---------- */
.cs-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.cs-card:hover {
  transform: translateY(-4px);
}

.cs-card__inner {
  display: flex;
  flex-direction: column;
  background-color: #FAFAFA;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 24px 24px 28px;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cs-card:hover .cs-card__inner {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: #ccc;
}

/* Featured card (large) */
.cs-card--featured {
  width: calc((100% - 32px) / 2);
}

.cs-card--featured .cs-card__inner {
  min-height: 260px;
}

/* Secondary card (small) */
.cs-card--secondary {
  width: calc((100% - 64px) / 3);
}

.cs-card--secondary .cs-card__inner {
  min-height: 260px;
}

/* ---------- Card logo ---------- */
.cs-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---------- Card decorative image (large ghosted logo, like Linear) ---------- */
.cs-card__image {
  position: absolute;
  right: -20px;
  top: -10px;
  width: 264px;
  height: 264px;
  object-fit: contain;
  opacity: 0.08;
  pointer-events: none;
  filter: grayscale(100%);
  transition: opacity 0.3s ease;
}

.cs-card:hover .cs-card__image {
  opacity: 0.14;
}

/* ---------- Card content ---------- */
.cs-card__spacer {
  flex: 1;
  min-height: 48px;
}

.cs-card__title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: -0.29px;
  color: #171717;
  margin: 0 0 16px;
  max-width: 360px;
}

.cs-card--secondary .cs-card__title {
  font-size: 20px;
}

.cs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #686868;
  transition: color 0.2s ease;
}

.cs-card:hover .cs-card__read {
  color: #171717;
}

.cs-card__read svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.cs-card:hover .cs-card__read svg {
  transform: translateX(4px);
}

/* ---------- STATS ---------- */
.cs-stats {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
}

.cs-stats__numbers {
  display: flex;
  gap: 48px;
  text-align: center;
}

.cs-stats__item {}

.cs-stats__value {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: #171717;
  line-height: 1;
  margin: 0;
}

.cs-stats__label {
  font-size: 14px;
  color: #686868;
  margin: 8px 0 0;
}

.cs-stats__separator {
  width: 1px;
  height: 64px;
  background: #E0E0E0;
  flex-shrink: 0;
}

.cs-stats__text {
  font-size: 16px;
  line-height: 1.5;
  color: #686868;
  max-width: 340px;
  margin: 0;
}

/* ---------- COMPANY TABLE ---------- */
.cs-table-section {
  text-align: center;
}

.cs-table__heading {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.88px;
  color: #171717;
  margin: 0 0 40px;
  line-height: 1.2;
}

/* Tabs */
.cs-tabs {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.cs-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid #E0E0E0;
  background: transparent;
  color: #686868;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cs-tab:hover {
  border-color: #171717;
  color: #171717;
}

.cs-tab.is-active {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}

/* Table rows */
.cs-table {
  text-align: left;
}

.cs-table__row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 16px;
  height: 56px;
  border-bottom: 1px solid #E0E0E0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.cs-table__row:first-child {
  border-top: 1px solid #E0E0E0;
}

.cs-table__row:hover {
  background: #FAFAFA;
}

.cs-table__row-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.cs-table__row-name {
  font-size: 16px;
  font-weight: 500;
  color: #171717;
}

.cs-table__row-categories {
  font-size: 14px;
  color: #686868;
}

.cs-table__row-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #686868;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cs-table__row:hover .cs-table__row-link {
  color: #171717;
}

.cs-table__row-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.cs-table__row:hover .cs-table__row-link svg {
  transform: translateX(3px);
}

/* Last row "Votre entreprise" */
.cs-table__row--cta {
  border-bottom: none;
}

.cs-table__row--cta .cs-table__row-name {
  color: #686868;
  font-weight: 400;
}

.cs-table__row--cta .cs-table__row-link {
  color: #171717;
  font-weight: 500;
}

/* ---------- CTA FOOTER ---------- */
.cs-cta {
  text-align: center;
  padding: 96px 0;
}

.cs-cta__heading {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.88px;
  color: #171717;
  margin: 0 0 40px;
  line-height: 1.2;
}

.cs-cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cs-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-cta__btn--primary {
  background: #171717;
  color: #ffffff;
  border: 1px solid #171717;
}

.cs-cta__btn--primary:hover {
  background: #333333;
  border-color: #333333;
}

.cs-cta__btn--secondary {
  background: transparent;
  color: #171717;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.cs-cta__btn--secondary:hover {
  border-color: #171717;
}

/* ---------- SCROLL FADE-IN ---------- */
.cs-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cs-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 991px) {
  .cs-hero {
    padding-top: 56px;
  }

  .cs-hero__title {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .cs-spacer--lg { height: 64px; }
  .cs-spacer--md { height: 48px; }

  .cs-card--featured {
    width: 100%;
  }

  .cs-card--secondary {
    width: calc((100% - 32px) / 2);
  }

  .cs-stats {
    flex-direction: column;
    gap: 32px;
  }

  .cs-stats__separator {
    width: 64px;
    height: 1px;
  }

  .cs-stats__text {
    text-align: center;
    max-width: 100%;
  }

  .cs-stats__numbers {
    justify-content: center;
  }

  .cs-table__heading {
    font-size: 32px;
  }

  .cs-cta__heading {
    font-size: 32px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .cs-hero {
    padding-top: 40px;
  }

  .cs-hero__title {
    font-size: 36px;
    letter-spacing: -0.7px;
  }

  .cs-spacer--lg { height: 48px; }
  .cs-spacer--md { height: 32px; }
  .cs-spacer--sm { height: 24px; }

  .cs-cards {
    gap: 24px;
  }

  .cs-card--featured,
  .cs-card--secondary {
    width: 100%;
  }

  .cs-card__image {
    width: 180px;
    height: 160px;
  }

  .cs-card__title {
    font-size: 20px;
  }

  .cs-stats__value {
    font-size: 40px;
  }

  .cs-stats__numbers {
    gap: 32px;
  }

  /* Tabs scrollable */
  .cs-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .cs-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Table simplified */
  .cs-table__row {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    height: auto;
    padding: 12px 0;
  }

  .cs-table__row-categories {
    display: none;
  }

  .cs-table__heading {
    font-size: 28px;
  }

  .cs-cta__heading {
    font-size: 28px;
  }

  .cs-cta {
    padding: 64px 0;
  }
}

/* Small mobile */
@media (max-width: 479px) {
  .cs-hero__title {
    font-size: 30px;
  }

  .cs-stats__value {
    font-size: 32px;
  }

  .cs-stats__numbers {
    gap: 24px;
  }
}
