/* ============================================================
   Cards
   ============================================================ */

.tkm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-background);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.tkm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.tkm-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-surface);
}
.tkm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.tkm-card:hover .tkm-card__media img { transform: scale(1.05); }

.tkm-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}

.tkm-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin: 0;
  color: var(--c-foreground);
}

.tkm-card__text {
  color: var(--c-muted);
  margin: 0;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.tkm-card__footer {
  margin-top: auto;
  padding-top: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

/* Glass card variant ----------------------------------------- */
.tkm-card--glass {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-color: var(--glass-border);
  box-shadow: var(--sh-glass), var(--sh-inner);
}

/* Feature card (icon + title + text) ------------------------- */
.tkm-feature {
  position: relative;
  padding: var(--s-6);
  background: var(--c-background);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
  height: 100%;
}
.tkm-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--c-primary-light);
}

.tkm-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--gradient-brand);
  color: #fff;
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-4);
  box-shadow: var(--sh-md);
}

.tkm-feature__title {
  font-size: var(--fs-xl);
  margin: 0 0 var(--s-3);
  color: var(--c-foreground);
}

.tkm-feature__text {
  color: var(--c-muted);
  margin: 0;
  line-height: var(--lh-relaxed);
}

/* Pack card (pricing) ---------------------------------------- */
.tkm-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-7) var(--s-5);
  background: var(--c-background);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  text-align: center;
  height: 100%;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.tkm-pack:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-xl);
  border-color: var(--c-primary-light);
}
.tkm-pack--featured {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-xl), var(--sh-glow);
  transform: translateY(-8px);
}
.tkm-pack--featured:hover { transform: translateY(-12px); }
.tkm-pack--featured .tkm-pack__name,
.tkm-pack--featured .tkm-pack__price,
.tkm-pack--featured .tkm-pack__desc { color: #fff; }
.tkm-pack--featured .tkm-pack__features li { color: rgba(255,255,255,0.95); }

.tkm-pack__badge {
  position: absolute;
  top: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--s-1) var(--s-3);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

.tkm-pack__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--s-5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tkm-pack__icon img { max-width: 100%; height: auto; }

.tkm-pack__name {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  margin: 0 0 var(--s-3);
  color: var(--c-primary-dark);
}

.tkm-pack__price {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--c-foreground);
  margin-bottom: var(--s-2);
}
.tkm-pack__price small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--c-muted);
}

.tkm-pack__desc {
  color: var(--c-muted);
  margin-bottom: var(--s-5);
}

.tkm-pack__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.tkm-pack__features li {
  position: relative;
  padding-left: var(--s-5);
  color: var(--c-foreground-2);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.tkm-pack__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316A34A'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.tkm-pack--featured .tkm-pack__features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
}

/* Realisation card (portfolio) ------------------------------ */
.tkm-realisation {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--sh-md);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.tkm-realisation:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-xl);
}
.tkm-realisation img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
  z-index: -2;
}
.tkm-realisation:hover img { transform: scale(1.07); }
.tkm-realisation::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  z-index: -1;
  transition: opacity var(--t-base) var(--ease-out);
}
.tkm-realisation__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-5);
  color: #fff;
}
.tkm-realisation__title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--s-2);
  color: #fff;
}
.tkm-realisation__meta {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Step card (processus) ------------------------------------- */
.tkm-step {
  position: relative;
  padding: var(--s-6);
  background: var(--c-background);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  height: 100%;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.tkm-step:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.tkm-step__num {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--s-4);
  display: block;
}
.tkm-step__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-3);
}
.tkm-step__text { color: var(--c-muted); margin: 0; line-height: var(--lh-relaxed); }

/* Testimonial card ------------------------------------------ */
.tkm-testimonial {
  background: var(--c-background);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  height: 100%;
  border: 1px solid var(--c-border);
}
.tkm-testimonial__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--c-foreground);
  margin: 0;
  position: relative;
  padding-left: var(--s-5);
}
.tkm-testimonial__quote::before {
  content: '"';
  position: absolute;
  left: -4px;
  top: -16px;
  font-size: var(--fs-6xl);
  color: var(--c-primary-light);
  line-height: 1;
  font-family: var(--font-heading);
}
.tkm-testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: auto;
}
.tkm-testimonial__author-name {
  font-weight: var(--fw-semibold);
  color: var(--c-foreground);
}
.tkm-testimonial__author-role {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* Grid helper ----------------------------------------------- */
.tkm-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tkm-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tkm-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 992px) {
  .tkm-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .tkm-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
