/* Certifications — full rebuild (explicit direction: the previous pass's
   two cards were much too wide, the badges too small, and a redundant
   "Voir la certification" line duplicated what the whole card already
   does). Small, near-square, fully-clickable cards, using the exact same
   dark-glass card recipe (--li-* tokens, declared in skills-hero.css) as
   every other card family across the redesigned pages.

   Plain "Certifications" title above them (explicit direction — the
   earlier heading + subtitle was removed, then a bare title asked back
   "comme arbre de compétences": same .skills-section-heading class as
   the tree's own H2, no subtitle, no extra wrapper class of its own).
   The two cards simply center themselves in the row at every width. */

.certifications-section {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
}

@media (min-width: 480px) {
  .certifications-section {
    grid-template-columns: repeat(2, minmax(160px, 230px));
    justify-content: center;
    justify-items: stretch;
  }
}

.cert-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  padding: 26px 20px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%),
    var(--li-card-bg);
  backdrop-filter: var(--li-card-blur);
  -webkit-backdrop-filter: var(--li-card-blur);
  border: 1px solid var(--li-border);
  border-radius: 18px;
  box-shadow: var(--li-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Static halo behind the badge only (explicit direction — no pointer
   tracking, no mousemove; just a fixed radial glow that brightens on
   hover like every other card halo on this site). */
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(50% 40% at 50% 22%, rgba(139, 92, 246, 0.22), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--li-border-hover);
  box-shadow: var(--li-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-card:focus-visible {
  outline: 2px solid #9fb8ff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cert-card {
    transition: none;
  }

  .cert-card:hover {
    transform: none;
  }
}

/* The badge is the main event now (82-100px, explicit direction, up
   from the previous pass's 60px). */
.cert-card__badge {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.cert-card__title {
  font-family: var(--font-satoshi);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: #fff;
}

/* "- Associate -" always on its own line (explicit direction), slightly
   lighter than the title above it so the two read as title + sub-label
   rather than one continuous line. */
.cert-card__associate {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--li-text-secondary);
}

.cert-card__date {
  font-family: var(--font-satoshi);
  font-size: 12px;
  color: var(--li-text-secondary);
}
