/* EXPERTISE SECTION STYLES */

.expertises-section {
  padding: var(--section-pad-compact);
}

.expertises-header {
  text-align: center;
  margin-bottom: 60px;
}

.expertises-subtitle i {
  margin-top: 8px;
  vertical-align: middle;
}

/* 3-COLUMN GRID */
.expertises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

/* EXPERTISE CARDS */
.expertise-card {
  background: var(--bg-white);
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  transition: all 200ms ease;
}

.expertise-card:hover {
  background: var(--bg-soft);
  border-color: var(--border-light);
}

.expertise-card-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expertise-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
  line-height: 1.3;
  margin-bottom: 20px;
}

.expertise-card-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Platform Icons in Expertise */
.expertise-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
}

.expertise-icons .platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-muted);
  border: none;
  border-radius: 6px;
  transition: all 200ms ease;
  opacity: 0.6;
}

.expertise-icons .platform-icon:hover {
  opacity: 1;
  background: var(--border-light);
}

.expertise-icons .platform-icon i {
  font-size: 16px;
  color: var(--text-strong);
  line-height: 1;
}

.expertise-icons .platform-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Strategy Chips in Expertise */
.expertise-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  transition: all 200ms ease;
}

.expertise-chip-item {
  display: flex;
  padding: 6px 10px;
  background: var(--bg-muted);
  flex-direction: row !important;
  justify-content: flex-start !important;
  text-align: left !important;
  border: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 200ms ease;
  align-items: center;
  gap: 6px;
}

.expertise-chip-item i {
  font-size: 16px;
  color: var(--brand-blue);
  min-width: 20px;
  opacity: 0.6;
  transition: all 200ms ease;
}

.expertise-chip-item span {
  font-size: var(--font-size-2xs);
  color: var(--text-strong);
  opacity: 0.6;
  transition: all 200ms ease;
}

.expertise-chip-item:hover i {
  opacity: 1;
}

.expertise-chip-item:hover span {
  color: var(--text-strong);
  opacity: 1;
}

/* Data Items in Expertise */
.expertise-data {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.expertise-data-item {
  padding: 6px 10px;
  background: var(--bg-muted);
  flex-direction: row !important;
  justify-content: flex-start !important;
  text-align: left !important;
  border: none;
  border-radius: 6px;
  white-space: nowrap;
  align-items: center;
  gap: 12px;
  transition: all 200ms ease;
  display: flex;
}

.expertise-data-item i {
  font-size: 16px;
  color: var(--brand-blue);
  min-width: 20px;
}

.expertise-data-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-blue);
}

.expertise-data-item:hover i {
  color: var(--text-strong);
}

.expertise-data-item:hover span {
  color: var(--text-strong);
}

/* SA Corp Lab Block */
.expertise-lab-block {
  margin-top: -20px;
}

.expertise-lab-card {
  background: linear-gradient(to top right, var(--brand-blue) 0%, var(--brand-purple) 100%);
  border-radius: 16px;
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: stretch;
}

.expertise-lab-title-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.lab-chip-badge {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  color: var(--brand-blue);
  font-size: var(--font-size-2xs);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.5px;
  align-items: center;
}

.lab-chip-badge span {
  margin-top: 2px;
}

.lab-chip-badge i {
  font-size: 14px;
  color: var(--brand-blue);
  align-items: center;
}

.lab-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.lab-card-footer-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
  margin-top: auto;
}

.lab-discover-btn {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0px 0;
  border-radius: 0;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.lab-discover-btn:hover {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.expertise-lab-title-gradient {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
  color: white;
}

.expertise-lab-description-new {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

.expertise-lab-features-chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lab-chip-item {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.lab-chip-item i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
}

.lab-card-video {
  flex: 0 0 auto;
  width: 380px;
  height: fit-content;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.lab-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* EXPERTISE CARD CTA BUTTON */
.expertise-card-cta {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
}

.expertise-card-cta:hover {
  border-color: var(--text-strong);
  background: var(--text-strong);
  color: white;
}

/* RESPONSIVE EXPERTISE SECTION */
@media (max-width: 1024px) {
  .expertises-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .expertise-lab-card {
    gap: 24px;
    padding: 32px;
  }

  .lab-card-video {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .expertises-header {
    margin-bottom: 40px;
  }

  .expertises-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .expertise-lab-card {
    flex-direction: column;
    gap: 24px;
    padding: 28px;
  }

  .lab-card-video {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .expertises-section {
    padding: var(--section-pad-compact);
  }

  .expertises-header {
    margin-bottom: 32px;
  }

  .expertises-title {
    font-size: 22px;
  }

  .expertises-subtitle {
    font-size: 14px;
    margin-bottom: 3.5rem;
  }

  .expertises-subtitle i {
    margin-left: 8px;
    vertical-align: middle;
  }

  .expertises-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .expertise-card {
    padding: 20px;
    gap: 12px;
  }

  .expertise-card-title {
    font-size: 16px;
  }

  .expertise-card-description {
    font-size: 13px;
  }

  .expertise-lab-card {
    padding: 20px;
    gap: 16px;
  }

  .expertise-lab-title-gradient {
    font-size: 20px;
  }

  /* Réordonnement mobile : title+desc → vidéo → chips → bouton → note */
  .lab-card-content {
    display: contents; /* "unwrap" : les enfants participent directement au flex parent */
  }

  .expertise-lab-title-wrapper { order: 1; }
  .expertise-lab-description-new { order: 2; }
  .lab-card-video { order: 3; }
  .expertise-lab-features-chips { order: 4; }
  .lab-discover-btn { order: 5; }
  .lab-card-footer-note { order: 6; }

  /* Chips plus petites sur mobile */
  .lab-chip-item {
    padding: 5px 9px;
    font-size: 11px;
    gap: 5px;
  }

  .lab-chip-item i {
    font-size: 13px;
  }
}
