/* ══════════════════════════════════════════════════════════════
   QUATRE — CASE STUDY CARDS
   ═════════════════════════════════════════════════════════════ */

.cs-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: #1a1a1a;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, box-shadow;
}

/* tilt-active handled in JS via rAF lerp — no CSS override needed */

.cs-card.is-hidden,
.actus-card.is-hidden {
  display: none;
}

.cs-card-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cs-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.06) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.cs-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.cs-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cs-card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  line-height: 14px;
}

.cs-card-name {
  font-family: "Spectral", Georgia, serif;
  font-size: 17px;
  line-height: 22px;
  color: #ffffff;
}

.cs-card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cs-card-arrow img {
  transition: filter 0.2s ease;
}

.cs-card:hover .cs-card-overlay {
  opacity: 1;
}

.cs-card:hover .cs-card-info {
  transform: translateY(0);
  opacity: 1;
}

/* Carte survolée → bouton passe en blanc */
.cs-card:hover .cs-card-arrow {
  background: #ffffff;
  border-color: #ffffff;
}

.cs-card:hover .cs-card-arrow img {
  filter: invert(1);
}

/* Bouton lui-même survolé → scale up */
.cs-card:hover .cs-card-arrow:hover {
  transform: scale(1.12);
}

/* Expert cards */
.expert-card {
  padding: 30px 24px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fcfcfa;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.expert-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.expert-card h3 {
  font-size: var(--headline-lg-size);
  line-height: var(--headline-lg-lh);
  margin-bottom: 12px;
}

.expert-card p {
  color: #3f3f3f;
  font-size: var(--text-base-size);
  line-height: var(--text-base-lh);
}

/* Expert column cards */
.expert-col {
  padding: 28px 22px 22px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  background: #fcfcfa;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, box-shadow;
  cursor: default;
}

/* tilt-active handled in JS via rAF lerp — no CSS override needed */

.expert-col .card-label {
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-lh);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-bottom: 2px;
}

.expert-col h3 {
  font-size: var(--headline-lg-size);
  line-height: var(--headline-lg-lh);
  margin-bottom: 2px;
}

.expert-col p {
  color: #3f3f3f;
  font-size: var(--text-base-size);
  line-height: var(--text-base-lh);
}

/* Case item card (home page) */
.case-item {
  min-height: 220px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #121212, #242424);
  padding: 22px;
  display: flex;
  align-items: end;
}

.case-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.case-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 1.05rem;
}

.case-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(231, 221, 207, 0.45);
}

/* Shop cards */
.shop-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(140deg, #121212, #242424);
  position: relative;
  min-height: 280px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
}

.shop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.shop-card span {
  position: relative;
  z-index: 1;
  font-size: var(--text-base-size);
  color: rgba(255, 255, 255, 0.85);
}

/* Actus cards */
.actus-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Section "À lire ensuite" en fin d'article (silo siblings) */
.art-read-next {
  padding: 80px 0 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.art-read-next-title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 8px 0 28px;
}

@media (max-width: 640px) {
  .art-read-next .actus-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Variante grille 3 colonnes (page Insights) */
.actus-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  margin-top: 32px;
}

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

@media (max-width: 640px) {
  .actus-grid--3col {
    grid-template-columns: 1fr;
  }
}

.actus-media {
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(140deg, #f1f1f1, #dedede);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.actus-media::before {
  content: "Studio";
  position: absolute;
  top: 18px;
  left: 18px;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Quand l'image cover est définie, on cache le placeholder texte */
.actus-media.has-cover::before {
  display: none;
}

/* Variante <a> : la card devient cliquable, on retire la décoration de lien */
a.actus-card {
  text-decoration: none;
  color: inherit;
}

/* ─── Effet sibling fade : quand on survole une .actus-card dans une .actus-grid,
   les autres cards passent en retrait avec une légère opacité réduite.
   Pas de translation, pas de changement de couleur du titre. ─── */
.actus-card {
  transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.actus-grid:hover .actus-card {
  opacity: 0.4;
}

.actus-grid:hover .actus-card:hover {
  opacity: 1;
}

.actus-date {
  color: var(--muted);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-lh);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.actus-title {
  font-size: var(--text-base-size);
  line-height: var(--text-base-lh);
  margin-bottom: 2px;
}
