.certifications {
  margin-left: 220px;
  padding: 48px 40px 80px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  box-sizing: border-box;
}

/* ---------- Titre de section ---------- */
.certifications > h2 {
  max-width: 880px;
  margin: 0 auto 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font: 600 24px/1.2 system-ui, sans-serif;
  color: var(--text);
}

.certifications-container {
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- Listes (officielles / autres) ---------- */
.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certifications-list:not(:first-child) {
  margin-top: 48px;
}

.certifications-list > h2 {
  margin: 0;
  font: 600 18px/1.3 system-ui, sans-serif;
  color: var(--text);
}

/* ---------- Carte de certification ---------- */
.certifications-element {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  column-gap: 20px;
  row-gap: 6px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.certifications-element:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

/* ---------- Logo / badge ---------- */
.logo-certifications {
  grid-row: 1 / span 5;
  width: 72px;
  height: 72px;
  object-fit: contain;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* ---------- Textes ---------- */
.certifications-element h1 {
  grid-column: 2;
  margin: 0;
  font: 600 18px/1.3 system-ui, sans-serif;
  color: var(--text);
}

.certifications-element h2 {
  grid-column: 2 / -1;
  margin: 0;
  font: 500 15px/1.4 system-ui, sans-serif;
  color: var(--accent);
}

.certifications-element h3 {
  grid-column: 2 / -1;
  margin: 0;
  font: 400 14px/1.4 system-ui, sans-serif;
  color: var(--muted);
}

/* date vide : pas de ligne fantôme */
.certifications-element h3:empty {
  display: none;
}

.certifications-element p {
  grid-column: 2 / -1;
  margin: 8px 0 0;
  max-width: 70ch;
  font: 400 15px/1.65 system-ui, sans-serif;
  color: var(--text);
  opacity: 0.85;
}

/* ---------- Statut ---------- */
.certifications-element > span {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

.certifications-element > span:not(.statut) {
  padding: 5px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-hover);
  font: 600 12px/1 system-ui, sans-serif;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .certifications {
    margin-left: 0;
    padding: 32px 16px 80px;
  }

  .certifications-element {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .certifications-element > span {
    grid-row: auto;
    justify-self: start;
    margin-top: 8px;
  }

  .logo-certifications {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .certifications-element h1,
  .certifications-element h2,
  .certifications-element h3,
  .certifications-element p,
  .certifications-element > span {
    grid-column: 1;
  }
}