/* Page de verification d'attestation (layout type certification Microsoft, branding ARCHIA365). */

.ms-cert-page {
    --ms-ink: var(--text, #1b1b1b);
    --ms-muted: var(--text-muted, #605e5c);
    --ms-blue: #0b2e5b;
    --ms-blue-deep: #061a36;
    --ms-card: var(--surface, #ffffff);
    --ms-green: #107c10;
    --ms-link: var(--primary, #0f6cbd);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ms-ink);
    background: var(--bg, #fff);
}

.ms-cert-page-title {
    padding: 1.75rem 0 1.25rem;
}

.ms-cert-page-title h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ms-ink);
}

.ms-cert-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at 88% 72%, rgba(96, 165, 250, 0.16), transparent 34%),
        linear-gradient(160deg, #0a2748 0%, #0b2e5b 48%, #08203d 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0 2.5rem;
}

.ms-cert-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(255, 255, 255, 0.08) 49%, transparent 51%),
        linear-gradient(-30deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, transparent 51%),
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px);
    background-size: 90px 90px, 90px 90px, 28px 28px;
    pointer-events: none;
}

.ms-cert-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 1.75rem;
    align-items: start;
}

.ms-cert-card {
    background: var(--ms-card);
    border: 1px solid var(--border, transparent);
    border-radius: 2px;
    padding: 2.25rem 2.5rem 1.75rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    color: var(--ms-ink);
}

.ms-cert-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.ms-cert-brand-logo {
    height: 48px;
    width: auto;
}

.ms-cert-brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ms-cert-brand-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--ms-muted);
}

.ms-cert-name {
    text-align: center;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    font-weight: 700;
    margin: 0 0 0.45rem;
    line-height: 1.15;
}

.ms-cert-phrase {
    text-align: center;
    margin: 0 0 0.55rem;
    color: var(--ms-muted);
    font-size: 1rem;
}

.ms-cert-achievement {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.6rem;
    line-height: 1.4;
}

.ms-cert-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
    margin: 0 0 1.1rem;
    max-width: 36rem;
}

.ms-cert-facts-col {
    flex: 1 1 10rem;
    min-width: 0;
}

.ms-cert-facts-col > div {
    margin-bottom: 0.7rem;
}

.ms-cert-facts-col > div:last-child {
    margin-bottom: 0;
}

.ms-cert-facts dt {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ms-muted);
}

.ms-cert-facts dd {
    margin: 0.1rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.ms-cert-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border, #8a8886);
    border-radius: 999px;
    padding: 0.28rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ms-ink);
    text-decoration: none;
    background: var(--ms-card);
    width: fit-content;
    margin-bottom: 1.5rem;
}

.ms-cert-verify-btn:hover {
    border-color: var(--ms-link);
    color: var(--ms-link);
}

.ms-cert-verify-btn-muted {
    color: var(--ms-muted);
}

.ms-cert-card-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-top: 0.5rem;
}

.ms-cert-card-badge {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ms-cert-card-badge img {
    width: 128px;
    height: 128px;
    display: block;
}

.ms-cert-signblock {
    text-align: right;
    min-width: 9rem;
}

.ms-cert-sign-line {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border, #c8c6c4);
    padding-bottom: 0.2rem;
}

.ms-cert-sign-meta {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    color: var(--ms-muted);
}

.ms-cert-side {
    color: #fff;
    padding-top: 0.25rem;
}

.ms-cert-side-badge {
    display: block;
    width: 168px;
    height: 168px;
    margin: 0 auto 1rem;
}

.ms-cert-side-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.ms-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.ms-status-active {
    background: var(--ms-green);
    color: #fff;
}

.ms-status-verify {
    background: transparent;
    border: 1px solid #9dc3e6;
    color: #e8f3ff;
}

.ms-status-private {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.ms-cert-side-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    margin: 0 0 1.25rem;
}

.ms-cert-side-facts .ms-cert-facts-col {
    flex: 1 1 8rem;
    min-width: 0;
}

.ms-cert-side-facts .ms-cert-facts-col > div {
    margin-bottom: 0.7rem;
}

.ms-cert-side-facts .ms-cert-facts-col > div:last-child {
    margin-bottom: 0;
}

.ms-cert-side-facts .ms-cert-facts-score {
    flex: 1 1 100%;
}

.ms-cert-side-facts dt {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.ms-cert-side-facts dd {
    margin: 0.12rem 0 0;
    font-weight: 600;
    word-break: break-word;
}

.ms-cert-side-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ms-cert-side-actions a {
    color: #9fd0ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
}

.ms-cert-side-actions a:hover {
    color: #fff;
    text-decoration: underline;
}

.ms-cert-side-share {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(159, 208, 255, 0.28);
}

.ms-cert-share-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ms-cert-share-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem;
}

.ms-cert-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(159, 208, 255, 0.35);
    color: #9fd0ff !important;
    text-decoration: none !important;
    font-size: 1.15rem;
    line-height: 1;
}

.ms-cert-share-link:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.ms-cert-share-link .bi {
    font-size: 1.2rem;
    line-height: 1;
}

.ms-cert-skills {
    padding: 2rem 0 3rem;
}

.ms-cert-skills h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
}

.ms-cert-skills ul {
    margin: 0;
    padding-left: 1.15rem;
}

.ms-cert-skills li {
    margin-bottom: 0.4rem;
    color: var(--ms-ink);
}

@media (max-width: 900px) {
    .ms-cert-hero-inner {
        grid-template-columns: 1fr;
    }

    .ms-cert-side {
        order: -1;
        text-align: center;
    }

    .ms-cert-side-facts {
        text-align: left;
        max-width: 26rem;
        margin-left: auto;
        margin-right: auto;
    }

    .ms-cert-side-actions {
        align-items: center;
    }

    .ms-cert-card {
        padding: 1.5rem 1.15rem 1.25rem;
        min-height: 0;
    }

    .ms-cert-card-bottom {
        flex-direction: column;
        align-items: center;
    }

    .ms-cert-signblock {
        text-align: center;
    }
}
