/**
 * 3SAFE – Page Formations CSE Pro
 * Styles strictement limités au composant .s3cse et à ses dialogues.
 */
:root {
    --s3cse-navy: #11184f;
    --s3cse-navy-deep: #091033;
    --s3cse-navy-2: #222b72;
    --s3cse-blue: #2867b2;
    --s3cse-blue-2: #3b7fc4;
    --s3cse-burgundy: #9a1d3f;
    --s3cse-burgundy-2: #74152f;
    --s3cse-teal: #167c82;
    --s3cse-ink: #15192d;
    --s3cse-muted: #626b7c;
    --s3cse-border: #dce1eb;
    --s3cse-soft: #f3f5f9;
    --s3cse-white: #ffffff;
    --s3cse-success: #16724a;
    --s3cse-danger: #a31d34;
    --s3cse-shadow-sm: 0 10px 28px rgba(17, 24, 79, 0.08);
    --s3cse-shadow: 0 18px 45px rgba(16, 24, 78, 0.12);
    --s3cse-shadow-lg: 0 28px 80px rgba(5, 13, 50, 0.24);
    --s3cse-radius-sm: 14px;
    --s3cse-radius: 22px;
    --s3cse-radius-lg: 32px;
    --s3cse-focus: 0 0 0 4px rgba(40, 103, 178, 0.24);
}

body.s3cse-page-active .page_title,
body.s3cse-page-active .page-title,
body.s3cse-page-active .entry-title,
body.s3cse-page-active .post-title,
body.s3cse-page-active .elementor-page-title,
body.s3cse-page-active .stm_page_bc,
body.s3cse-page-active .page_bc,
body.s3cse-page-active .breadcrumbs,
body.s3cse-page-active .breadcrumb {
    display: none !important;
}

body.s3cse-page-active {
    overflow-x: hidden;
    overflow-x: clip;
}

body.s3cse-page-active .entry-content,
body.s3cse-page-active .post-content,
body.s3cse-page-active .elementor-widget-theme-post-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

.s3cse,
.s3cse *,
.s3cse *::before,
.s3cse *::after,
.s3cse-dialog,
.s3cse-dialog *,
.s3cse-dialog *::before,
.s3cse-dialog *::after {
    box-sizing: border-box;
}

.s3cse,
.s3cse-dialog {
    font-family: Inter, Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.s3cse {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    color: var(--s3cse-ink);
    background: var(--s3cse-white);
    font-size: 16px;
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.s3cse--full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.s3cse a {
    color: inherit;
    text-decoration: none;
}

.s3cse img,
.s3cse svg {
    display: block;
    max-width: 100%;
}

.s3cse button,
.s3cse input,
.s3cse select,
.s3cse textarea {
    font: inherit;
}

.s3cse h1,
.s3cse h2,
.s3cse h3,
.s3cse p,
.s3cse dl,
.s3cse dd,
.s3cse dt,
.s3cse ol,
.s3cse figure {
    margin: 0;
}

.s3cse-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.s3cse-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--s3cse-white);
    background: var(--s3cse-burgundy);
    font-weight: 800;
}

.s3cse-skip:focus {
    top: 16px;
}

.s3cse :focus-visible,
.s3cse-dialog :focus-visible {
    outline: none;
    box-shadow: var(--s3cse-focus);
}

.s3cse-kicker {
    margin-bottom: 12px !important;
    color: var(--s3cse-burgundy);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.s3cse-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.s3cse-button:hover {
    transform: translateY(-2px);
}

.s3cse-button svg,
.s3cse-text-link svg,
.s3cse-overview-card > svg,
.s3cse-quality-link a svg,
.s3cse-mobile-actions svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.s3cse-button--primary {
    color: var(--s3cse-white) !important;
    background: var(--s3cse-burgundy);
    box-shadow: 0 14px 30px rgba(154, 29, 63, 0.28);
}

.s3cse-button--primary:hover,
.s3cse-button--primary:focus-visible {
    background: var(--s3cse-burgundy-2);
    box-shadow: 0 18px 36px rgba(154, 29, 63, 0.34);
}

.s3cse-button--light {
    color: var(--s3cse-navy) !important;
    background: var(--s3cse-white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.s3cse-button--secondary {
    color: var(--s3cse-white) !important;
    background: var(--s3cse-navy);
}

.s3cse-button--secondary:hover,
.s3cse-button--secondary:focus-visible {
    background: var(--s3cse-navy-2);
}

.s3cse-button--ghost {
    color: var(--s3cse-navy) !important;
    border-color: rgba(17, 24, 79, 0.18);
    background: var(--s3cse-white);
}

.s3cse-button--ghost:hover,
.s3cse-button--ghost:focus-visible {
    border-color: var(--s3cse-navy);
    background: var(--s3cse-soft);
}

.s3cse-button--outline-light {
    color: var(--s3cse-white) !important;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.07);
}

.s3cse-button--outline-light:hover,
.s3cse-button--outline-light:focus-visible {
    border-color: var(--s3cse-white);
    background: rgba(255, 255, 255, 0.14);
}

.s3cse-button--small {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Hero */
.s3cse-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 108px) 0 clamp(86px, 10vw, 132px);
    color: var(--s3cse-white);
    background:
        radial-gradient(circle at 83% 17%, rgba(63, 124, 211, 0.52), transparent 30%),
        radial-gradient(circle at 12% 95%, rgba(154, 29, 63, 0.26), transparent 31%),
        linear-gradient(134deg, var(--s3cse-navy-deep) 0%, var(--s3cse-navy) 55%, var(--s3cse-navy-2) 100%);
}

.s3cse-hero::before,
.s3cse-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.s3cse-hero::before {
    top: -430px;
    right: -260px;
    width: 840px;
    height: 840px;
}

.s3cse-hero::after {
    bottom: -510px;
    left: 22%;
    width: 760px;
    height: 760px;
}

.s3cse-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    align-items: center;
    gap: clamp(46px, 7vw, 92px);
}

.s3cse-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 42px;
}

.s3cse-brand__logo {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: var(--s3cse-white);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.s3cse-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s3cse-brand strong,
.s3cse-brand small {
    display: block;
}

.s3cse-brand strong {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

.s3cse-brand small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.s3cse-hero .s3cse-kicker {
    color: #ffbdcc;
}

.s3cse-hero h1 {
    max-width: 820px;
    color: var(--s3cse-white);
    font-size: clamp(2.75rem, 6.2vw, 5.6rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.s3cse-hero__lead {
    max-width: 760px;
    margin-top: 28px !important;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.72;
}

.s3cse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.s3cse-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 22px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.s3cse-hero__facts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.s3cse-hero__facts svg {
    width: 17px;
    height: 17px;
    color: #ffb4c7;
}

.s3cse-hero-card {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--s3cse-radius-lg);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: var(--s3cse-shadow-lg);
    backdrop-filter: blur(18px);
}

.s3cse-hero-card__badges {
    display: flex;
    justify-content: center;
    margin: -76px 0 26px;
}

.s3cse-hero-card__badges img {
    width: 142px;
    height: 142px;
    padding: 7px;
    border: 4px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: var(--s3cse-white);
    object-fit: contain;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}

.s3cse-hero-card__badges img + img {
    margin-left: -32px;
}

.s3cse-hero-card__eyebrow {
    margin-bottom: 16px !important;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.s3cse-hero-card__metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.s3cse-hero-card__metric strong {
    color: var(--s3cse-white);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.s3cse-hero-card__metric span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    font-weight: 750;
}

.s3cse-hero-card__metric--accent strong {
    color: #ffbdcc;
}

.s3cse-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: var(--s3cse-white) !important;
    font-size: 0.9rem;
    font-weight: 850;
}

/* Overview */
.s3cse-overview {
    position: relative;
    z-index: 3;
    margin-top: -52px;
}

.s3cse-overview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--s3cse-border);
    border-radius: var(--s3cse-radius);
    background: var(--s3cse-white);
    box-shadow: var(--s3cse-shadow);
}

.s3cse-overview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 134px;
    padding: 24px;
    transition: background 0.2s ease, color 0.2s ease;
}

.s3cse-overview-card + .s3cse-overview-card {
    border-left: 1px solid var(--s3cse-border);
}

.s3cse-overview-card:hover,
.s3cse-overview-card:focus-visible {
    color: var(--s3cse-white);
    background: var(--s3cse-navy);
}

.s3cse-icon-box {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--s3cse-burgundy);
    background: #f9edf1;
}

.s3cse-icon-box svg {
    width: 25px;
    height: 25px;
}

.s3cse-overview-card small,
.s3cse-overview-card strong {
    display: block;
}

.s3cse-overview-card small {
    margin-bottom: 4px;
    color: var(--s3cse-muted);
    font-size: 0.77rem;
    font-weight: 750;
}

.s3cse-overview-card strong {
    color: var(--s3cse-navy);
    font-size: 1.03rem;
    line-height: 1.35;
}

.s3cse-overview-card:hover small,
.s3cse-overview-card:focus-visible small,
.s3cse-overview-card:hover strong,
.s3cse-overview-card:focus-visible strong {
    color: inherit;
}

/* Sections */
.s3cse-section {
    padding: clamp(78px, 8vw, 118px) 0;
}

.s3cse-section--soft {
    background: var(--s3cse-soft);
}

.s3cse-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    align-items: end;
    gap: 44px;
    margin-bottom: 42px;
}

.s3cse-section-heading h2 {
    max-width: 760px;
    color: var(--s3cse-navy);
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.s3cse-section-heading > p {
    color: var(--s3cse-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

/* Categories */
.s3cse-categories {
    display: grid;
    gap: 18px;
}

.s3cse-category {
    overflow: hidden;
    border: 1px solid var(--s3cse-border);
    border-radius: var(--s3cse-radius);
    background: var(--s3cse-white);
    box-shadow: var(--s3cse-shadow-sm);
}

.s3cse-category[open] {
    box-shadow: var(--s3cse-shadow);
}

.s3cse-category summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    min-height: 122px;
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
}

.s3cse-category summary::-webkit-details-marker {
    display: none;
}

.s3cse-category summary:hover {
    background: #fafbfe;
}

.s3cse-category__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 17px;
    color: var(--s3cse-white);
    background: linear-gradient(135deg, var(--s3cse-navy), var(--s3cse-blue));
    box-shadow: 0 12px 26px rgba(17, 24, 79, 0.20);
}

.s3cse-category:nth-child(2) .s3cse-category__icon {
    background: linear-gradient(135deg, var(--s3cse-burgundy-2), var(--s3cse-burgundy));
}

.s3cse-category:nth-child(3) .s3cse-category__icon {
    background: linear-gradient(135deg, #0d6268, var(--s3cse-teal));
}

.s3cse-category__icon svg {
    width: 29px;
    height: 29px;
}

.s3cse-category__heading small,
.s3cse-category__heading strong,
.s3cse-category__heading em {
    display: block;
}

.s3cse-category__heading small {
    margin-bottom: 3px;
    color: var(--s3cse-burgundy);
    font-size: 0.73rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.s3cse-category__heading strong {
    color: var(--s3cse-navy);
    font-size: clamp(1.25rem, 2.6vw, 1.72rem);
    line-height: 1.25;
}

.s3cse-category__heading em {
    margin-top: 5px;
    color: var(--s3cse-muted);
    font-size: 0.9rem;
    font-style: normal;
}

.s3cse-category__count {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--s3cse-navy);
    background: var(--s3cse-soft);
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.s3cse-category__chevron {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--s3cse-border);
    border-radius: 50%;
    color: var(--s3cse-navy);
    transition: transform 0.25s ease, background 0.2s ease;
}

.s3cse-category__chevron svg {
    width: 19px;
    height: 19px;
}

.s3cse-category[open] .s3cse-category__chevron {
    transform: rotate(180deg);
    color: var(--s3cse-white);
    background: var(--s3cse-navy);
}

.s3cse-category__content {
    padding: 0 26px 28px;
    border-top: 1px solid var(--s3cse-border);
}

.s3cse-category__intro {
    max-width: 930px;
    padding: 24px 0;
    color: var(--s3cse-muted);
    line-height: 1.72;
}

.s3cse-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.s3cse-program-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 23px;
    border: 1px solid var(--s3cse-border);
    border-radius: 18px;
    background: var(--s3cse-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.s3cse-program-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 103, 178, 0.42);
    box-shadow: var(--s3cse-shadow-sm);
}

.s3cse-program-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.s3cse-program-card__badge {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--s3cse-burgundy-2);
    background: #f8e9ee;
    font-size: 0.73rem;
    font-weight: 900;
}

.s3cse-program-card__version {
    color: var(--s3cse-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.s3cse-program-card h3 {
    color: var(--s3cse-navy);
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.35;
}

.s3cse-program-card__subtitle {
    margin-top: 7px !important;
    color: var(--s3cse-blue);
    font-size: 0.84rem;
    font-weight: 800;
}

.s3cse-program-card__description {
    min-height: 112px;
    margin-top: 16px !important;
    color: var(--s3cse-muted);
    font-size: 0.91rem;
    line-height: 1.66;
}

.s3cse-program-meta {
    display: grid;
    gap: 10px;
    margin-top: 20px !important;
    padding-top: 18px;
    border-top: 1px solid var(--s3cse-border);
}

.s3cse-program-meta > div {
    display: grid;
    grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: start;
}

.s3cse-program-meta dt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--s3cse-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.s3cse-program-meta dt svg {
    width: 15px;
    height: 15px;
    color: var(--s3cse-burgundy);
}

.s3cse-program-meta dd {
    color: var(--s3cse-ink);
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.45;
}

.s3cse-program-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.s3cse-program-card__actions .s3cse-button {
    flex: 1 1 130px;
}

.s3cse-program-note {
    margin-top: 22px !important;
    padding: 15px 18px;
    border-left: 4px solid var(--s3cse-burgundy);
    border-radius: 8px 14px 14px 8px;
    color: var(--s3cse-muted);
    background: var(--s3cse-white);
    font-size: 0.84rem;
}

/* Process */
.s3cse-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--s3cse-border);
    border-radius: var(--s3cse-radius);
    background: var(--s3cse-white);
    list-style: none;
    box-shadow: var(--s3cse-shadow-sm);
}

.s3cse-process li {
    position: relative;
    min-height: 285px;
    padding: 30px 26px;
}

.s3cse-process li + li {
    border-left: 1px solid var(--s3cse-border);
}

.s3cse-process li > span {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: var(--s3cse-white);
    background: var(--s3cse-navy);
    font-size: 0.82rem;
    font-weight: 900;
}

.s3cse-process li:nth-child(2) > span,
.s3cse-process li:nth-child(4) > span {
    background: var(--s3cse-burgundy);
}

.s3cse-process h3 {
    margin-top: 26px !important;
    color: var(--s3cse-navy);
    font-size: 1.2rem;
}

.s3cse-process p {
    margin-top: 11px !important;
    color: var(--s3cse-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Statistics */
.s3cse-section--stats {
    position: relative;
    overflow: hidden;
    color: var(--s3cse-white);
    background:
        radial-gradient(circle at 90% 5%, rgba(59, 127, 196, 0.38), transparent 28%),
        linear-gradient(135deg, var(--s3cse-navy-deep), var(--s3cse-navy) 62%, var(--s3cse-navy-2));
}

.s3cse-section--stats::after {
    position: absolute;
    right: -260px;
    bottom: -360px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.s3cse-section-heading--light {
    position: relative;
    z-index: 1;
}

.s3cse-section-heading--light h2,
.s3cse-section-heading--light > p {
    color: var(--s3cse-white);
}

.s3cse-section-heading--light > p {
    color: rgba(255, 255, 255, 0.72);
}

.s3cse-section--stats .s3cse-kicker {
    color: #ffbdcc;
}

.s3cse-stat-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--s3cse-radius);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.s3cse-stat-summary > div {
    padding: 24px;
    text-align: center;
}

.s3cse-stat-summary > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.s3cse-stat-summary strong,
.s3cse-stat-summary span {
    display: block;
}

.s3cse-stat-summary strong {
    color: var(--s3cse-white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.s3cse-stat-summary span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 750;
}

.s3cse-stats-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    align-items: start;
    gap: 24px;
}

.s3cse-chart,
.s3cse-source-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--s3cse-radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.s3cse-chart {
    display: grid;
    gap: 16px;
    padding: 25px;
}

.s3cse-stat-row {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 1.2fr);
    align-items: center;
    gap: 18px;
}

.s3cse-stat-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.s3cse-stat-label > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 900;
}

.s3cse-stat-label strong {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
    line-height: 1.35;
}

.s3cse-stat-track {
    position: relative;
    height: 30px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.s3cse-stat-bar {
    display: flex;
    width: var(--s3cse-value);
    min-width: 66px;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.s3cse-stat-bar span {
    color: var(--s3cse-white);
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.s3cse-stat-bar--1 { background: linear-gradient(90deg, #2876bd, #4a9ada); }
.s3cse-stat-bar--2 { background: linear-gradient(90deg, #8d1b3b, #bd3c61); }
.s3cse-stat-bar--3 { background: linear-gradient(90deg, #12656b, #29a0a6); }
.s3cse-stat-bar--4 { background: linear-gradient(90deg, #5c4aa7, #8170ca); }

.s3cse-source-card {
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.s3cse-source-card > a {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--s3cse-white);
}

.s3cse-source-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.s3cse-source-card > a:hover img {
    transform: scale(1.025);
}

.s3cse-source-card > a span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--s3cse-white);
    background: rgba(9, 16, 51, 0.88);
    font-size: 0.75rem;
    font-weight: 850;
}

.s3cse-source-card > a span svg {
    width: 16px;
    height: 16px;
}

.s3cse-source-card > p {
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* Practical */
.s3cse-practical-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.s3cse-practical-grid article {
    min-height: 250px;
    padding: 26px;
    border: 1px solid var(--s3cse-border);
    border-radius: var(--s3cse-radius);
    background: var(--s3cse-white);
    box-shadow: var(--s3cse-shadow-sm);
}

.s3cse-practical-grid article > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 15px;
    color: var(--s3cse-white);
    background: var(--s3cse-navy);
}

.s3cse-practical-grid article:nth-child(even) > span {
    background: var(--s3cse-burgundy);
}

.s3cse-practical-grid article > span svg {
    width: 25px;
    height: 25px;
}

.s3cse-practical-grid h3 {
    margin-top: 24px !important;
    color: var(--s3cse-navy);
    font-size: 1.18rem;
}

.s3cse-practical-grid p {
    margin-top: 10px !important;
    color: var(--s3cse-muted);
    font-size: 0.9rem;
    line-height: 1.68;
}

.s3cse-quality-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 22px 24px;
    border: 1px solid var(--s3cse-border);
    border-radius: var(--s3cse-radius);
    background: var(--s3cse-white);
    box-shadow: var(--s3cse-shadow-sm);
}

.s3cse-quality-link > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    color: var(--s3cse-white);
    background: linear-gradient(135deg, var(--s3cse-navy), var(--s3cse-blue));
}

.s3cse-quality-link > span svg {
    width: 26px;
    height: 26px;
}

.s3cse-quality-link strong {
    color: var(--s3cse-navy);
    font-size: 1.05rem;
}

.s3cse-quality-link p {
    margin-top: 3px !important;
    color: var(--s3cse-muted);
    font-size: 0.86rem;
}

.s3cse-quality-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--s3cse-burgundy);
    font-size: 0.86rem;
    font-weight: 900;
}

/* CTA */
.s3cse-cta {
    padding: clamp(72px, 8vw, 104px) 0;
    color: var(--s3cse-white);
    background: linear-gradient(135deg, var(--s3cse-navy-deep), var(--s3cse-navy));
}

.s3cse-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 58px;
}

.s3cse-cta .s3cse-kicker {
    color: #ffbdcc;
}

.s3cse-cta h2 {
    max-width: 780px;
    color: var(--s3cse-white);
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.s3cse-cta p:not(.s3cse-kicker) {
    max-width: 720px;
    margin-top: 18px !important;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}

.s3cse-cta__actions {
    display: grid;
    min-width: 270px;
    gap: 10px;
}

.s3cse-email {
    padding-top: 5px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.86rem;
    font-weight: 750;
    text-align: center;
}

/* Dialogs */
.s3cse-dialog:not([open]) {
    display: none;
}

.s3cse-dialog {
    width: min(1120px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    color: var(--s3cse-ink);
    background: transparent;
}

.s3cse-contact-dialog {
    width: min(900px, calc(100% - 28px));
}

.s3cse-dialog::backdrop {
    background: rgba(4, 9, 30, 0.78);
    backdrop-filter: blur(7px);
}

.s3cse-dialog[open] {
    animation: s3cse-dialog-in 0.24s ease-out;
}

.s3cse-dialog__panel {
    display: flex;
    max-height: calc(100vh - 28px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: var(--s3cse-white);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
}

.s3cse-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--s3cse-border);
    background: var(--s3cse-white);
}

.s3cse-dialog__header--dark {
    color: var(--s3cse-white);
    border-bottom: 0;
    background: linear-gradient(135deg, var(--s3cse-navy-deep), var(--s3cse-navy));
}

.s3cse-dialog__header small {
    display: block;
    margin-bottom: 3px;
    color: var(--s3cse-burgundy);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.s3cse-dialog__header--dark small {
    color: #ffbdcc;
}

.s3cse-dialog__header h2 {
    color: var(--s3cse-navy);
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    line-height: 1.25;
}

.s3cse-dialog__header--dark h2 {
    color: var(--s3cse-white);
}

.s3cse-dialog__header--dark p {
    margin-top: 6px !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
}

.s3cse-dialog__close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--s3cse-border);
    border-radius: 50%;
    color: var(--s3cse-navy);
    background: var(--s3cse-white);
    cursor: pointer;
}

.s3cse-dialog__close--light {
    color: var(--s3cse-white);
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
}

.s3cse-dialog__close svg {
    width: 20px;
    height: 20px;
}

.s3cse-document-viewer {
    display: grid;
    min-height: min(70vh, 720px);
    flex: 1 1 auto;
    place-items: center;
    overflow: auto;
    background: #e9edf3;
}

.s3cse-document-viewer iframe {
    width: 100%;
    min-height: min(70vh, 720px);
    border: 0;
    background: var(--s3cse-white);
}

.s3cse-document-viewer img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
}

.s3cse-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-top: 1px solid var(--s3cse-border);
    background: var(--s3cse-white);
}

.s3cse-dialog__footer p {
    color: var(--s3cse-muted);
    font-size: 0.78rem;
}

.s3cse-contact-form {
    overflow: auto;
    padding: 24px;
}

.s3cse-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.s3cse-form-grid label,
.s3cse-consent {
    display: grid;
    gap: 7px;
}

.s3cse-form-grid label > span,
.s3cse-consent span {
    color: var(--s3cse-navy);
    font-size: 0.82rem;
    font-weight: 850;
}

.s3cse-form-grid em,
.s3cse-consent em {
    color: var(--s3cse-burgundy);
    font-style: normal;
}

.s3cse-form-grid input,
.s3cse-form-grid select,
.s3cse-form-grid textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--s3cse-border);
    border-radius: 11px;
    color: var(--s3cse-ink);
    background: var(--s3cse-white);
}

.s3cse-form-grid textarea {
    min-height: 122px;
    resize: vertical;
}

.s3cse-form-grid input:focus,
.s3cse-form-grid select:focus,
.s3cse-form-grid textarea:focus {
    border-color: var(--s3cse-blue);
    outline: none;
    box-shadow: var(--s3cse-focus);
}

.s3cse-form-grid__wide {
    grid-column: 1 / -1;
}

.s3cse-consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    margin-top: 18px;
}

.s3cse-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--s3cse-burgundy);
}

.s3cse-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.s3cse-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--s3cse-border);
}

.s3cse-form-footer p {
    color: var(--s3cse-muted);
    font-size: 0.8rem;
}

.s3cse-form-footer a {
    color: var(--s3cse-navy);
    font-weight: 800;
}

.s3cse-form-status {
    min-height: 24px;
    margin-top: 14px;
    font-size: 0.86rem;
    font-weight: 800;
}

.s3cse-form-status.is-success {
    color: var(--s3cse-success);
}

.s3cse-form-status.is-error {
    color: var(--s3cse-danger);
}

/* Mobile actions and back to top */
.s3cse-mobile-actions {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 900;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(9, 16, 51, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(14px);
}

.s3cse-mobile-actions a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--s3cse-white) !important;
    font-size: 0.82rem;
    font-weight: 850;
}

.s3cse-mobile-actions a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--s3cse-burgundy);
}

.s3cse-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 850;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--s3cse-white);
    background: var(--s3cse-navy);
    box-shadow: var(--s3cse-shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.s3cse-back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.s3cse-back-top:hover {
    background: var(--s3cse-burgundy);
}

.s3cse-back-top svg {
    width: 22px;
    height: 22px;
}

/* Progressive enhancement */
.s3cse.s3cse--js [data-s3cse-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.58s ease, transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.s3cse.s3cse--js [data-s3cse-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@keyframes s3cse-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
    .s3cse-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
        gap: 44px;
    }

    .s3cse-program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .s3cse-process,
    .s3cse-practical-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .s3cse-process li:nth-child(3) {
        border-left: 0;
    }

    .s3cse-process li:nth-child(n + 3) {
        border-top: 1px solid var(--s3cse-border);
    }

    .s3cse-stats-layout {
        grid-template-columns: 1fr;
    }

    .s3cse-source-card {
        position: static;
        display: grid;
        grid-template-columns: minmax(280px, 0.55fr) minmax(0, 0.45fr);
        align-items: center;
    }

    .s3cse-source-card > p {
        padding: 26px;
    }
}

@media (max-width: 860px) {
    .s3cse-hero {
        padding-top: 54px;
    }

    .s3cse-hero__grid,
    .s3cse-section-heading,
    .s3cse-cta__inner {
        grid-template-columns: 1fr;
    }

    .s3cse-hero-card {
        width: min(100%, 520px);
        margin-top: 48px;
    }

    .s3cse-overview__grid {
        grid-template-columns: 1fr;
    }

    .s3cse-overview-card + .s3cse-overview-card {
        border-top: 1px solid var(--s3cse-border);
        border-left: 0;
    }

    .s3cse-section-heading {
        gap: 18px;
    }

    .s3cse-stat-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .s3cse-stat-label strong {
        font-size: 0.84rem;
    }

    .s3cse-quality-link {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .s3cse-quality-link a {
        grid-column: 2;
        justify-self: start;
    }

    .s3cse-cta__actions {
        width: min(100%, 340px);
    }
}

@media (max-width: 680px) {
    .s3cse-container {
        width: min(100% - 28px, 1180px);
    }

    .s3cse {
        padding-bottom: 72px;
    }

    .s3cse-hero {
        padding-bottom: 94px;
    }

    .s3cse-brand {
        margin-bottom: 34px;
    }

    .s3cse-brand__logo {
        width: 64px;
        height: 64px;
    }

    .s3cse-hero h1 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    .s3cse-actions .s3cse-button {
        width: 100%;
    }

    .s3cse-hero-card {
        padding: 22px;
    }

    .s3cse-hero-card__badges img {
        width: 116px;
        height: 116px;
    }

    .s3cse-overview {
        margin-top: -36px;
    }

    .s3cse-overview-card {
        min-height: 116px;
        padding: 19px;
    }

    .s3cse-section {
        padding: 70px 0;
    }

    .s3cse-section-heading h2,
    .s3cse-cta h2 {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .s3cse-category summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 104px;
        padding: 18px;
    }

    .s3cse-category__icon {
        width: 48px;
        height: 48px;
    }

    .s3cse-category__count {
        display: none;
    }

    .s3cse-category__heading em {
        display: none;
    }

    .s3cse-category__content {
        padding: 0 16px 18px;
    }

    .s3cse-program-grid,
    .s3cse-process,
    .s3cse-practical-grid,
    .s3cse-stat-summary,
    .s3cse-source-card {
        grid-template-columns: 1fr;
    }

    .s3cse-program-card__description {
        min-height: 0;
    }

    .s3cse-process li + li,
    .s3cse-process li:nth-child(3) {
        border-top: 1px solid var(--s3cse-border);
        border-left: 0;
    }

    .s3cse-stat-summary > div + div {
        border-top: 1px solid rgba(255, 255, 255, 0.13);
        border-left: 0;
    }

    .s3cse-chart {
        padding: 18px;
    }

    .s3cse-source-card > p {
        padding: 20px;
    }

    .s3cse-quality-link {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .s3cse-quality-link a {
        grid-column: 1;
    }

    .s3cse-dialog__footer,
    .s3cse-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .s3cse-form-grid {
        grid-template-columns: 1fr;
    }

    .s3cse-form-grid__wide {
        grid-column: auto;
    }

    .s3cse-form-footer .s3cse-button {
        width: 100%;
    }

    .s3cse-mobile-actions {
        display: grid;
    }

    .s3cse-back-top {
        right: 16px;
        bottom: 78px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 420px) {
    .s3cse-category__icon {
        display: none;
    }

    .s3cse-category summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .s3cse-program-meta > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .s3cse *,
    .s3cse *::before,
    .s3cse *::after,
    .s3cse-dialog *,
    .s3cse-dialog *::before,
    .s3cse-dialog *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .s3cse.s3cse--js [data-s3cse-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .s3cse--full-bleed {
        width: 100%;
        margin: 0;
    }

    .s3cse-hero,
    .s3cse-section--stats,
    .s3cse-cta {
        color: #000;
        background: #fff;
    }

    .s3cse-hero h1,
    .s3cse-section-heading--light h2,
    .s3cse-cta h2 {
        color: #11184f;
    }

    .s3cse-category {
        break-inside: avoid;
    }

    .s3cse-category:not([open]) > *:not(summary) {
        display: block;
    }

    .s3cse-button,
    .s3cse-mobile-actions,
    .s3cse-back-top,
    .s3cse-dialog {
        display: none !important;
    }
}
