/* ============================================================
   Savoira, Certificat : un seul gabarit, piloté par les données.
   A4 paysage @96 dpi : 1123 × 794 px (297 × 210 mm), marges 12 mm.
   Retenue = crédibilité : cream, ink/pine, filigrane grille 4 %,
   un seul filet de cadre. Trois faces : sans · serif italique
   (le nom, uniquement) · mono (données et numéro).
   ============================================================ */

.cert { position: relative; width: 1123px; height: 794px; background: #FAF8F2; color: #101613; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.cert, .cert * { box-sizing: border-box; margin: 0; }
.cert::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(14,59,44,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(14,59,44,0.04) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.cert-inner { position: absolute; inset: 45px; border: 1px solid rgba(14,59,44,0.3); padding: 40px 56px 36px; display: flex; flex-direction: column; }

/* En-tête */
.cert-head { display: flex; align-items: center; justify-content: space-between; }
.cert-brand { display: inline-flex; align-items: center; }
.cert-no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(16,22,19,0.64); }

/* Corps */
.cert-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 0; }
.cert-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #0E3B2C; }
.cert-name { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; line-height: 1.08; margin-top: 20px; max-width: 860px; text-wrap: balance; }
.cert-for { margin-top: 18px; font-size: 15px; color: rgba(16,22,19,0.64); }
.cert-title { margin-top: 8px; font-size: 29px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; max-width: 760px; text-wrap: balance; }
.cert-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #DFEBE3; color: #0E3B2C; font-size: 13px; line-height: 18px; font-weight: 500; margin-top: 14px; }
.cert-outcome { margin-top: 13px; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(16,22,19,0.64); }
.cert-outcome b { color: #0E3B2C; font-weight: 500; }
.cert-courses-line { margin-top: 5px; font-size: 12.5px; color: rgba(16,22,19,0.64); }

/* Mention + rangée de données */
.cert-mention { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #101613; }
.cert-mention::before, .cert-mention::after { content: ""; height: 1px; flex: 1; background: rgba(14,59,44,0.22); }
.cert-rule { height: 1px; background: rgba(14,59,44,0.22); margin-bottom: 14px; }
.cert-data { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 20px; }
.cert-cell-l { font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(16,22,19,0.64); }
.cert-cell-v { margin-top: 6px; font-size: 15.5px; line-height: 21px; font-weight: 600; }

/* Pied : signatures + vérification */
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: end; padding-top: 22px; border-top: 1px solid rgba(14,59,44,0.22); }
.cert-sig-script { font-family: "Mrs Saint Delafield", cursive; font-size: 36px; line-height: 1; color: #101613; }
.cert-sig-name { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(14,59,44,0.35); font-size: 13px; font-weight: 600; width: max-content; padding-right: 28px; }
.cert-sig-role { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(16,22,19,0.64); margin-top: 3px; }
.cert-verify { display: flex; align-items: center; gap: 14px; max-width: 400px; }
.cert-qr { width: 66px; height: 66px; flex: none; display: block; }
.cert-qr svg { width: 100%; height: 100%; display: block; }
.cert-verify-url { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; color: #0E3B2C; }
.cert-verify-note { font-size: 10.5px; line-height: 1.5; color: rgba(16,22,19,0.64); margin-top: 4px; }
.cert-org { text-align: right; }
.cert-org .cert-brand { justify-content: flex-end; }

/* ---------- Image sociale 1200 × 627 (partage LinkedIn) ---------- */
.certsoc { position: relative; width: 1200px; height: 627px; background: #FAF8F2; color: #101613; font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; }
.certsoc, .certsoc * { box-sizing: border-box; margin: 0; }
.certsoc::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(14,59,44,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(14,59,44,0.04) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.certsoc-inner { position: absolute; inset: 32px; border: 1px solid rgba(14,59,44,0.3); padding: 44px 56px; display: flex; flex-direction: column; }
.certsoc-head { display: flex; align-items: center; justify-content: space-between; }
.certsoc-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.certsoc-mid .cert-eyebrow { text-align: left; }
.certsoc-name { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 500; font-size: 66px; line-height: 1.08; margin-top: 18px; max-width: 20ch; }
.certsoc-title { margin-top: 14px; font-size: 27px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; color: rgba(16,22,19,0.88); max-width: 30ch; }
.certsoc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.certsoc-foot .cert-verify-url { font-size: 13px; }
