/* Layout now uses .formations__wrapper.no-sidebar from training.css */

.certifications h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.qualiopi-certificate {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.qualiopi-certificate img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qualiopi-certificate img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(3, 169, 245, 0.2);
}

/* Lightbox */
.cert-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.cert-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
}

/* h1 uses shared .glass-title from globals.css */

.certification {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 2rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 12px rgba(31,38,135,0.08);
  transition: all 0.3s ease;
}

.certification:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(3,169,245,0.15);
  background: rgba(255,255,255,0.85);
}

.certification img {
  height: 60px;
}

.certifications__content-left > *:not(.glass-title) {
  padding-left: 1rem;
}

.certifications__content-left {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.clients-list {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.clients-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.certification h3,
.client-card h3 {
  font-weight: 400;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 12px rgba(31,38,135,0.08);
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(3,169,245,0.15);
  background: rgba(255,255,255,0.85);
}

.client-card img {
  width: 110px;
  height: 60px;
  object-fit: contain;
}

@media only screen and (max-width: 876px) {
  .certifications h2 {
    width: 90%;
    font-size: 1.2rem;
  }
}

@media only screen and (max-width: 560px) {
  .certifications h2 {
    width: 100%;
    font-size: 1.1rem;
  }

  .certification {
    gap: 1rem;
  }

  .certification h3 {
    font-size: 0.95rem;
  }

  .clients-list {
    grid-template-columns: 1fr;
  }
}
