/* =============================================================================
HEADER
============================================================================= */

header {
  padding: 2rem 0;
}

.cas-clients-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 10rem auto 0;
  gap: 1.5rem;
  width: var(--width-narrow);
}


/* =============================================================================
GRID RESPONSIVE
============================================================================= */

.cas-grid-section {
  padding: 5rem 0 2rem;
  width: var(--width-content);
  margin: auto;
}

.cas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Mobile */

@media (max-width: 640px) {
  .cas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}


/* =============================================================================
CARD PREMIUM
============================================================================= */

.cas-card {
  display: block;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--color-border);
  height: -webkit-fit-content;

  position: relative;
  isolation: isolate;

  transition:
    transform .6s cubic-bezier(.215, .61, .355, 1),
    box-shadow .6s ease,
    border-color .4s ease;
}


/* Glow premium au hover */

.cas-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(208, 221, 255, .28),
      transparent 40%);
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 0;
}

.cas-card:hover::after {
  opacity: 1;
}


/* Hover premium */

.cas-card:hover {
  transform: translateY(-8px) scale(1.01);

  box-shadow:
    0 40px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .08);

  border-color: rgba(255, 255, 255, .18);
}



/* =============================================================================
IMAGE
============================================================================= */

.cas-card-image {
  position: relative;
  overflow: hidden;
}

.cas-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;

  transition:
    transform .8s cubic-bezier(.215, .61, .355, 1),
    filter .6s ease;

  filter: brightness(.92) saturate(.9);
}

.cas-card:hover .cas-card-image img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1);
}



/* =============================================================================
TAG
============================================================================= */

.cas-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  backdrop-filter: blur(8px);
}



/* =============================================================================
CONTENT
============================================================================= */

.cas-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}



/* Marque */

.cas-card-company {
  font-size: var(--text-xl);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text-default);
  margin: 0;
}



/* Tagline */

.cas-card-tagline {
  font-size: var(--text-md);
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin: 0;

  transition:
    transform .5s cubic-bezier(.215, .61, .355, 1),
    opacity .4s ease;
}

.cas-card:hover .cas-card-company {
  transform: translateY(-1px);
}

.cas-card:hover .cas-card-tagline {
  transform: translateY(-2px);
}

/* =============================================================================
FLECHE APPLE
============================================================================= */

.cas-card-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(10px);

  opacity: 0;
  transform: translateY(8px) scale(.9);

  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.215, .61, .355, 1),
    background .3s ease;
}


.cas-card-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;

  transition: transform .4s ease;
}


/* Hover */

.cas-card:hover .cas-card-arrow {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* Hover plus premium */

.cas-card:hover .cas-card-arrow {
  background: rgba(208, 221, 255);
}


/* =============================================================================
ANIMATION APPARITION GRID
============================================================================= */

.cas-card {
  opacity: 0;
  transform: translateY(30px);
  animation: cardFade .8s cubic-bezier(.215, .61, .355, 1) forwards;
}

.cas-card:nth-child(2) {
  animation-delay: .08s;
}

.cas-card:nth-child(3) {
  animation-delay: .16s;
}

.cas-card:nth-child(4) {
  animation-delay: .24s;
}

.cas-card:nth-child(5) {
  animation-delay: .32s;
}

@keyframes cardFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* =============================================================================
MOBILE OPTIMISATION
============================================================================= */

@media (max-width: 640px) {

  .cas-card-image img {
    height: 180px;
  }

  .cas-card-content {
    padding: .9rem;
  }

  .cas-card-tagline {
    font-size: .95rem;
  }

}


/* =============================================================================
SECTION CTA
============================================================================= */

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  width: var(--width-content);
  margin: 2rem auto 6rem;
  padding: 5rem 4rem;
  background: linear-gradient(to top, var(--blue-100) 0%, var(--gray-0) 100%);
  border: 1px solid var(--color-accent);
  border-radius: 2rem;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  width: var(--width-narrow);
}

.cta-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-default);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1100px) {
  .cas-grid {
    grid-template-rows: repeat(2, 32rem);
  }

  .cas-card-tagline {
    font-size: var(--text-md);
  }
}

@media (max-width: 900px) {
  .cas-clients-header {
    width: 100%;
    margin-top: 8rem;
  }

  .cas-grid-section {
    width: 100%;
    padding: 4rem 0 1rem;
  }

  .cas-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 36rem);
  }

  .cas-card {
    border-radius: 1.5rem;
  }

  .cas-card-cta {
    opacity: 1;
    transform: scale(1);
  }

  .cta-section {
    padding: 3.5rem 2rem;
    margin-bottom: 4rem;
    border-radius: 1.5rem;
  }

  .cta-content {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cas-grid {
    grid-template-rows: repeat(4, auto);
  }

  .cas-card-tagline {
    font-size: var(--text-sm);
  }

  .cas-card-content {
    padding: 1.5rem;
  }
}





/* =============================================================================
PAGE CAS CLIENTS — LAYOUT
============================================================================= */

.cc-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: var(--width-narrow);
  margin: auto;
  padding-top: 8rem;
  text-align: center;
}

.cc-header-inner img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
}


/* =============================================================================
BODY
============================================================================= */

.cc-body {
  display: flex;
  flex-direction: column;
  gap: 5rem;

  width: var(--width-narrow);
  margin: 4rem auto 0;
}


/* =============================================================================
SECTIONS EDITORIALES
============================================================================= */

.cc-section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 2.5rem;
  align-items: start;
}

.cc-section .tag {
  grid-column: 1;
  margin-top: .35rem;
}

.cc-section h2,
.cc-section p {
  grid-column: 2;
  max-width: 640px;
}


/* Typographie */

.cc-section h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  font-weight: 600;
  color: var(--color-text-default);
}

.cc-section p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}


/* =============================================================================
METRICS STRIP
============================================================================= */

.cc-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;

  padding: 2rem 0;

  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cc-strip-metric {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-family: var(--font-sans);
}

.cc-metric-value {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-default);
}

.cc-metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: .25rem;
}


/* =============================================================================
COMPARISON
============================================================================= */

.cc-comparison {
  width: 100%;
  font-family: var(--font-sans);
}

.cc-comparison-table {
  border-top: 1px solid var(--color-border);
}

.cc-comparison-head,
.cc-comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 1.5rem 0;
}

.cc-comparison-head {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-disabled);
}

.cc-comparison-row {
  border-top: 1px solid var(--color-border);
  transition: background .2s ease;

  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.cc-comparison-row:hover {
  background: var(--color-bg-subtle);
}

.cc-comparison-row div:first-child {
  color: var(--color-text-secondary);
}

.cc-comparison-row div:last-child {
  color: var(--color-text-default);
  font-weight: 500;
}


/* Ligne verticale */

.cc-comparison-table {
  position: relative;
}

.cc-comparison-table::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--color-border);
  transform: translateX(-50%);
}



/* =============================================================================
NAVIGATION CAS CLIENTS
============================================================================= */

.cc-nav-wrapper {
  margin: 6rem auto 2rem;
  width: var(--width-narrow);
}

.cc-nav-cases {
  position: inherit;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;

  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  background: white;
}

.cc-nav-case {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  height: calc(100% - 3.5rem);

  text-decoration: none;
  color: inherit;

  transition:
    background .25s ease,
    transform .35s ease;
}

.cc-nav-case:hover {
  background: var(--color-bg-subtle);
}

.cc-nav-case:first-child {
  border-right: 1px solid var(--color-border);
}


/* Direction */

.cc-nav-case-dir {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: .5rem;
}


/* Nom */

.cc-nav-case-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-default);
}


/* secteur */

.cc-nav-case-sector {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}


/* droite */

.cc-nav-case:last-child {
  text-align: right;
  align-items: flex-end;
}


/* Arrow animation */

.cc-nav-case svg {
  width: 1rem;
  height: 1rem;
}

.cc-nav-case:hover svg,
.cc-nav-case:hover .cc-nav-case-dir {
  color: var(--color-accent);
}



/* =============================================================================
MOBILE
============================================================================= */

@media (max-width:900px) {

  /* Body */

  .cc-body {
    gap: 4rem;
  }

  .cc-body,
  .cc-header-inner,
  .cc-nav-wrapper {
    width: 100%;
  }


  /* Sections */

  .cc-section {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .cc-section .tag {
    grid-column: auto;
  }

  .cc-section h2,
  .cc-section p {
    grid-column: auto;
  }


  /* Metrics */

  .cc-metrics-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  /* Comparison */

  .cc-comparison-head {
    display: none;
  }

  .cc-comparison-row {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .cc-comparison-table::before {
    display: none;
  }


  /* Navigation */

  .cc-nav-cases {
    grid-template-columns: 1fr;
  }

  .cc-nav-case:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .cc-nav-case:last-child {
    text-align: left;
    align-items: flex-start;
  }

}