/**
 * 3SAFE – Page Secourisme & Organisation des Secours Pro 1.1.1
 * Structure visuelle alignée sur le plugin 3SAFE Formations CSE Pro.
 * Tous les styles front-end sont limités au composant .s3sos et à ses dialogues.
 */

body.three-safe-secours-hide-title .page_title,
body.three-safe-secours-hide-title .page-title,
body.three-safe-secours-hide-title .entry-title,
body.three-safe-secours-hide-title .post-title,
body.three-safe-secours-hide-title .elementor-page-title,
body.three-safe-secours-hide-title .stm_page_bc,
body.three-safe-secours-hide-title .page_bc,
body.three-safe-secours-hide-title .breadcrumbs,
body.three-safe-secours-hide-title .breadcrumb {
    display: none !important;
}

body.three-safe-secours-active {
    overflow-x: hidden;
    overflow-x: clip;
}

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

html.s3sos-modal-open,
html.s3sos-modal-open body {
    overflow: hidden !important;
}

.s3sos {
    --s3sos-navy: #11184f;
    --s3sos-navy-deep: #091033;
    --s3sos-navy-2: #222b72;
    --s3sos-blue: #2867b2;
    --s3sos-blue-2: #3b7fc4;
    --s3sos-burgundy: #9a1d3f;
    --s3sos-burgundy-2: #74152f;
    --s3sos-teal: #167c82;
    --s3sos-orange: #c86f25;
    --s3sos-green: #16724a;
    --s3sos-ink: #15192d;
    --s3sos-text: #394255;
    --s3sos-muted: #626b7c;
    --s3sos-border: #dce1eb;
    --s3sos-soft: #f3f5f9;
    --s3sos-soft-blue: #edf4fb;
    --s3sos-white: #ffffff;
    --s3sos-danger: #a31d34;
    --s3sos-shadow-sm: 0 10px 28px rgba(17, 24, 79, 0.08);
    --s3sos-shadow: 0 18px 45px rgba(16, 24, 78, 0.12);
    --s3sos-shadow-lg: 0 28px 80px rgba(5, 13, 50, 0.24);
    --s3sos-radius-sm: 14px;
    --s3sos-radius: 22px;
    --s3sos-radius-lg: 32px;
    --s3sos-focus: 0 0 0 4px rgba(40, 103, 178, 0.24);
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: var(--s3sos-text);
    background: var(--s3sos-white);
    font-family: Lato, Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

.s3sos :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
    margin: 0;
}

.s3sos :where(ul, ol) {
    padding: 0;
}

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

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

.s3sos button {
    margin: 0;
}

.s3sos img,
.s3sos svg {
    display: block;
}

.s3sos img {
    max-width: 100%;
    height: auto;
}

.s3sos :where(a, button, input, select, textarea, summary):focus-visible {
    outline: none;
    box-shadow: var(--s3sos-focus);
}

.s3sos-container {
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.s3sos-skip {
    position: fixed;
    z-index: 100000;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--s3sos-white) !important;
    background: var(--s3sos-navy);
    font-size: 0.86rem;
    font-weight: 850;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.s3sos-skip:focus {
    transform: translateY(0);
}

/* Shared typography and controls */
.s3sos-kicker {
    margin-bottom: 12px !important;
    color: var(--s3sos-burgundy);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.s3sos-kicker--light {
    color: #ffb8c9;
}

.s3sos-kicker--white {
    color: var(--s3sos-white);
}

.s3sos-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 19px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-size: 0.87rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.s3sos-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.s3sos-button--primary {
    color: var(--s3sos-white) !important;
    background: linear-gradient(135deg, #b62650, var(--s3sos-burgundy));
    box-shadow: 0 14px 30px rgba(154, 29, 63, 0.29);
}

.s3sos-button--primary:hover {
    background: linear-gradient(135deg, #c72b58, #821834);
    box-shadow: 0 18px 36px rgba(154, 29, 63, 0.37);
}

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

.s3sos-button--secondary {
    color: var(--s3sos-white) !important;
    background: var(--s3sos-navy);
    box-shadow: 0 10px 24px rgba(17, 24, 79, 0.18);
}

.s3sos-button--secondary:hover {
    background: var(--s3sos-navy-2);
}

.s3sos-button--ghost,
.s3sos-button--outline {
    color: var(--s3sos-navy) !important;
    border-color: rgba(17, 24, 79, 0.19);
    background: transparent;
}

.s3sos-button--ghost:hover,
.s3sos-button--outline:hover {
    border-color: var(--s3sos-navy);
    background: rgba(17, 24, 79, 0.045);
}

.s3sos-button--outline-light {
    color: var(--s3sos-white) !important;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.s3sos-button--outline-light:hover {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.12);
}

.s3sos-button--small {
    min-height: 43px;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 0.79rem;
}

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

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

/* Hero */
.s3sos-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(54px, 6vw, 82px) 0 clamp(118px, 11vw, 166px);
    color: var(--s3sos-white);
    background:
        radial-gradient(circle at 80% 16%, rgba(76, 105, 222, 0.34), transparent 31%),
        radial-gradient(circle at 7% 94%, rgba(154, 29, 63, 0.25), transparent 30%),
        linear-gradient(135deg, var(--s3sos-navy-deep) 0%, var(--s3sos-navy) 55%, #17286c 100%);
}

.s3sos-hero::before,
.s3sos-hero::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.s3sos-hero::before {
    top: -380px;
    right: -260px;
    width: 790px;
    height: 790px;
}

.s3sos-hero::after {
    right: 17%;
    bottom: -510px;
    width: 720px;
    height: 720px;
}

.s3sos-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.62fr);
    align-items: center;
    gap: clamp(48px, 7vw, 92px);
}

.s3sos-brand {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 43px;
    color: var(--s3sos-white) !important;
}

.s3sos-brand__logo {
    display: grid;
    width: 76px;
    height: 76px;
    overflow: hidden;
    flex: 0 0 auto;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: var(--s3sos-white);
    box-shadow: 0 16px 34px rgba(2, 7, 31, 0.26);
}

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

.s3sos-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.s3sos-brand strong {
    color: var(--s3sos-white);
    font-size: 1.17rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.s3sos-brand small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
    font-weight: 750;
}

.s3sos-hero h1,
.s3sos-hero h2,
.s3sos-hero h3 {
    max-width: 780px;
    color: var(--s3sos-white);
    font-size: clamp(3rem, 6.1vw, 5.55rem);
    font-weight: 950;
    letter-spacing: -0.062em;
    line-height: 0.98;
}

.s3sos-hero h1 span,
.s3sos-hero h2 span,
.s3sos-hero h3 span {
    color: #ffb7c8;
}

.s3sos-hero__lead {
    max-width: 730px;
    margin-top: 25px !important;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.75;
}

.s3sos-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.s3sos-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 28px;
}

.s3sos-hero__facts span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.79rem;
    font-weight: 780;
}

.s3sos-hero__facts svg {
    width: 17px;
    height: 17px;
    color: #ffb7c8;
}

.s3sos-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(27px, 3.3vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--s3sos-radius-lg);
    background: rgba(255, 255, 255, 0.075);
    box-shadow: var(--s3sos-shadow-lg);
    backdrop-filter: blur(18px);
}

.s3sos-hero-card::before {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(154, 29, 63, 0.18);
    content: "";
}

.s3sos-hero-card__badges {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 26px;
}

.s3sos-hero-badge {
    display: grid;
    width: 122px;
    height: 122px;
    overflow: hidden;
    place-items: center;
    border: 5px solid rgba(255, 255, 255, 0.19);
    border-radius: 50%;
    background: var(--s3sos-white);
    box-shadow: 0 18px 36px rgba(2, 7, 31, 0.26);
}

.s3sos-hero-badge + .s3sos-hero-badge {
    margin-left: -22px;
}

.s3sos-hero-badge--sst {
    align-content: center;
    gap: 4px;
    color: var(--s3sos-burgundy);
    background: linear-gradient(145deg, #ffffff, #f8eaf0);
}

.s3sos-hero-badge--sst svg {
    width: 44px;
    height: 44px;
}

.s3sos-hero-badge--sst strong {
    color: var(--s3sos-navy);
    font-size: 0.94rem;
    letter-spacing: 0.08em;
}

.s3sos-hero-badge--pssm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s3sos-hero-card__eyebrow {
    position: relative;
    margin-bottom: 5px !important;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.s3sos-hero-card__metric {
    position: relative;
    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);
}

.s3sos-hero-card__metric strong {
    color: var(--s3sos-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

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

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

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

.s3sos-text-link svg {
    width: 17px;
    height: 17px;
}

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

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

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

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

.s3sos-overview-card > svg {
    width: 20px;
    height: 20px;
    color: var(--s3sos-muted);
}

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

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

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

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

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

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

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

.s3sos-section--white {
    background: var(--s3sos-white);
}

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

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

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

.s3sos-section-heading--light h2 {
    color: var(--s3sos-white);
}

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

.s3sos-section-heading--single {
    grid-template-columns: minmax(0, 1fr);
}

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

.s3sos-category {
    scroll-margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--s3sos-border);
    border-radius: var(--s3sos-radius);
    background: var(--s3sos-white);
    box-shadow: var(--s3sos-shadow-sm);
}

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

.s3sos-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;
    transition: background 180ms ease;
}

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

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

.s3sos-category__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 17px;
    color: var(--s3sos-burgundy);
    background: #f9edf1;
}

.s3sos-category__icon--teal {
    color: var(--s3sos-teal);
    background: #eaf7f7;
}

.s3sos-category__icon--blue {
    color: var(--s3sos-blue);
    background: #edf4fb;
}

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

.s3sos-category__heading {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.s3sos-category__heading small {
    color: var(--s3sos-burgundy);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.s3sos-category__heading strong {
    color: var(--s3sos-navy);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 920;
    line-height: 1.22;
}

.s3sos-category__heading em {
    overflow: hidden;
    color: var(--s3sos-muted);
    font-size: 0.83rem;
    font-style: normal;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s3sos-category__count {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--s3sos-navy);
    background: var(--s3sos-soft);
    font-size: 0.75rem;
    font-weight: 850;
    white-space: nowrap;
}

.s3sos-category__chevron {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--s3sos-navy);
    background: var(--s3sos-soft);
    transition: transform 180ms ease, background 180ms ease;
}

.s3sos-category__chevron svg {
    width: 18px;
    height: 18px;
}

.s3sos-category[open] .s3sos-category__chevron {
    color: var(--s3sos-white);
    background: var(--s3sos-burgundy);
    transform: rotate(90deg);
}

.s3sos-category__content {
    padding: 0 24px 24px;
}

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

.s3sos-program-grid--single {
    grid-template-columns: minmax(0, 760px);
}

.s3sos-program-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--s3sos-border);
    border-top: 5px solid var(--s3sos-blue);
    border-radius: 18px;
    background: var(--s3sos-white);
    box-shadow: 0 9px 25px rgba(17, 24, 79, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.s3sos-program-card--pssm-standard {
    border-top-color: var(--s3sos-teal);
}

.s3sos-program-card--pssm-jeunes {
    border-top-color: var(--s3sos-burgundy);
}

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

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

.s3sos-program-card__badge,
.s3sos-program-card__version {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 880;
    line-height: 1.2;
}

.s3sos-program-card__badge {
    color: var(--s3sos-burgundy);
    background: #f9edf1;
}

.s3sos-program-card__version {
    color: var(--s3sos-muted);
    background: var(--s3sos-soft);
    white-space: nowrap;
}

.s3sos-program-card h3 {
    color: var(--s3sos-navy);
    font-size: clamp(1.25rem, 2.1vw, 1.65rem);
    font-weight: 920;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.s3sos-program-card__subtitle {
    margin-top: 8px !important;
    color: var(--s3sos-burgundy);
    font-size: 0.83rem;
    font-weight: 850;
    line-height: 1.45;
}

.s3sos-program-card__description {
    min-height: 82px;
    margin-top: 14px !important;
    color: var(--s3sos-muted);
    font-size: 0.89rem;
    line-height: 1.66;
}

.s3sos-program-meta {
    display: grid;
    gap: 0;
    margin-top: 20px !important;
    border-top: 1px solid var(--s3sos-border);
    border-bottom: 1px solid var(--s3sos-border);
}

.s3sos-program-meta > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 0.58fr);
    gap: 13px;
    padding: 11px 0;
}

.s3sos-program-meta > div + div {
    border-top: 1px solid var(--s3sos-border);
}

.s3sos-program-meta dt,
.s3sos-program-meta dd {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
}

.s3sos-program-meta dt {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--s3sos-muted);
    font-weight: 750;
}

.s3sos-program-meta dt svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--s3sos-burgundy);
}

.s3sos-program-meta dd {
    color: var(--s3sos-ink);
    font-weight: 820;
}

.s3sos-program-card__prerequisite {
    display: flex;
    gap: 9px;
    margin-top: 15px !important;
    color: var(--s3sos-muted);
    font-size: 0.77rem;
    line-height: 1.5;
}

.s3sos-program-card__prerequisite svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--s3sos-green);
}

.s3sos-program-card__prerequisite strong {
    color: var(--s3sos-ink);
}

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

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

.s3sos-process li {
    position: relative;
    min-height: 255px;
    padding: 30px 27px;
}

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

.s3sos-process li > span {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 35px;
    place-items: center;
    border-radius: 14px;
    color: var(--s3sos-white);
    background: var(--s3sos-navy);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.s3sos-process li:nth-child(2) > span {
    background: var(--s3sos-blue);
}

.s3sos-process li:nth-child(3) > span {
    background: var(--s3sos-teal);
}

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

.s3sos-process h3 {
    color: var(--s3sos-navy);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.25;
}

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

/* Statistics */
.s3sos-section--stats {
    color: var(--s3sos-white);
    background:
        radial-gradient(circle at 85% 18%, rgba(154, 29, 63, 0.36), transparent 31%),
        linear-gradient(135deg, var(--s3sos-navy-deep), #14245f 60%, #202f75);
}

.s3sos-stat-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(12px);
}

.s3sos-stat-summary > div {
    min-height: 142px;
    padding: 26px;
}

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

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

.s3sos-stat-summary strong {
    color: var(--s3sos-white);
    font-size: clamp(2.15rem, 4vw, 3.25rem);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.s3sos-stat-summary span {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 760;
}

.s3sos-stats-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(310px, 0.52fr);
    align-items: start;
    gap: 22px;
}

.s3sos-chart,
.s3sos-source-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 60px rgba(4, 8, 35, 0.18);
    backdrop-filter: blur(12px);
}

.s3sos-chart {
    display: grid;
    gap: 18px;
    padding: 27px;
}

.s3sos-stat-row {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(220px, 1fr);
    align-items: center;
    gap: 18px;
}

.s3sos-stat-label {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.s3sos-stat-label > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.83);
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.66rem;
    font-weight: 900;
}

.s3sos-stat-label strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1.4;
}

.s3sos-stat-track {
    height: 34px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.s3sos-stat-bar {
    display: flex;
    width: var(--s3sos-value);
    min-width: 80px;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    border-radius: inherit;
    background: linear-gradient(90deg, #3379c4, #69b5f2);
}

.s3sos-stat-bar--2 {
    background: linear-gradient(90deg, #13787e, #58c0b2);
}

.s3sos-stat-bar--3 {
    background: linear-gradient(90deg, #821834, #c54b6b);
}

.s3sos-stat-bar--4 {
    background: linear-gradient(90deg, #b26424, #eda45d);
}

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

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

.s3sos-source-card__image {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #fff;
}

.s3sos-source-card__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #fff;
}

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

.s3sos-source-card__image > span svg {
    width: 15px;
    height: 15px;
}

.s3sos-source-card__content {
    padding: 25px;
}

.s3sos-source-card__content h3 {
    color: var(--s3sos-white);
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.28;
}

.s3sos-source-card__content > p:last-child {
    margin-top: 17px !important;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    line-height: 1.6;
}

.s3sos-certification-lines {
    display: grid;
    gap: 9px;
    margin-top: 21px;
}

.s3sos-certification-lines > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.s3sos-certification-lines span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 750;
}

.s3sos-certification-lines strong {
    color: var(--s3sos-white);
    font-size: 1rem;
    font-weight: 900;
}

/* Practical / quality */
.s3sos-practical-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--s3sos-border);
    border-radius: var(--s3sos-radius);
    background: var(--s3sos-white);
    box-shadow: var(--s3sos-shadow-sm);
}

.s3sos-practical-grid article {
    min-height: 225px;
    padding: 27px;
}

.s3sos-practical-grid article + article {
    border-left: 1px solid var(--s3sos-border);
}

.s3sos-practical-grid article:nth-child(2) .s3sos-icon-box {
    color: var(--s3sos-teal);
    background: #eaf7f7;
}

.s3sos-practical-grid article:nth-child(3) .s3sos-icon-box {
    color: var(--s3sos-blue);
    background: #edf4fb;
}

.s3sos-practical-grid article:nth-child(4) .s3sos-icon-box {
    color: var(--s3sos-green);
    background: #edf7f2;
}

.s3sos-practical-grid h3 {
    margin-top: 27px !important;
    color: var(--s3sos-navy);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.3;
}

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

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

.s3sos-quality-link strong {
    display: block;
    color: var(--s3sos-navy);
    font-size: 1.02rem;
    font-weight: 900;
}

.s3sos-quality-link p {
    margin-top: 4px !important;
    color: var(--s3sos-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.s3sos-resource-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-top: 22px;
    border: 1px solid var(--s3sos-border);
    border-radius: 18px;
    background: var(--s3sos-white);
}

.s3sos-resource-links a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 102px;
    padding: 20px;
    transition: background 180ms ease;
}

.s3sos-resource-links a + a {
    border-left: 1px solid var(--s3sos-border);
}

.s3sos-resource-links a:hover {
    background: var(--s3sos-soft);
}

.s3sos-resource-links a > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--s3sos-burgundy);
    background: #f9edf1;
}

.s3sos-resource-links a:nth-child(2) > span {
    color: var(--s3sos-teal);
    background: #eaf7f7;
}

.s3sos-resource-links a:nth-child(3) > span {
    color: var(--s3sos-blue);
    background: #edf4fb;
}

.s3sos-resource-links a > span svg {
    width: 22px;
    height: 22px;
}

.s3sos-resource-links a > svg {
    width: 17px;
    height: 17px;
    color: var(--s3sos-muted);
}

.s3sos-resource-links strong,
.s3sos-resource-links small {
    display: block;
}

.s3sos-resource-links strong {
    color: var(--s3sos-navy);
    font-size: 0.93rem;
    font-weight: 900;
}

.s3sos-resource-links small {
    margin-top: 3px;
    color: var(--s3sos-muted);
    font-size: 0.74rem;
}


/* Code du travail / INRS */
.s3sos-legal {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 4%, rgba(40, 103, 178, 0.1), transparent 32%),
        linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
}

.s3sos-legal::before {
    position: absolute;
    top: -170px;
    left: -170px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(17, 24, 79, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.s3sos-legal .s3sos-container {
    position: relative;
    z-index: 1;
}

.s3sos-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

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

.s3sos-legal-panel__header {
    display: flex;
    min-height: 126px;
    align-items: center;
    gap: 18px;
    padding: 25px 27px;
    color: var(--s3sos-white);
    background:
        radial-gradient(circle at 95% 0%, rgba(255, 255, 255, 0.11), transparent 40%),
        linear-gradient(135deg, var(--s3sos-navy-deep), var(--s3sos-navy-2));
}

.s3sos-legal-panel--inrs .s3sos-legal-panel__header {
    background:
        radial-gradient(circle at 95% 0%, rgba(255, 255, 255, 0.12), transparent 40%),
        linear-gradient(135deg, var(--s3sos-burgundy-2), var(--s3sos-burgundy));
}

.s3sos-legal-panel__icon {
    display: grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.1);
}

.s3sos-legal-panel__icon svg {
    width: 28px;
    height: 28px;
}

.s3sos-legal-panel__header small,
.s3sos-legal-panel__header h3 {
    display: block;
}

.s3sos-legal-panel__header small {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.s3sos-legal-panel__header h3 {
    color: var(--s3sos-white);
    font-size: 1.24rem;
    font-weight: 950;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.s3sos-legal-links {
    display: grid;
}

.s3sos-legal-links a {
    display: grid;
    grid-template-columns: minmax(82px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 19px 22px;
    transition: background 180ms ease, transform 180ms ease;
}

.s3sos-legal-links a + a {
    border-top: 1px solid var(--s3sos-border);
}

.s3sos-legal-links a:hover {
    background: var(--s3sos-soft-blue);
}

.s3sos-legal-panel--inrs .s3sos-legal-links a:hover {
    background: #fcf2f5;
}

.s3sos-legal-link__reference {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--s3sos-navy);
    background: #e9eef8;
    font-size: 0.71rem;
    font-weight: 950;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.s3sos-legal-panel--inrs .s3sos-legal-link__reference {
    color: var(--s3sos-burgundy-2);
    background: #f8e8ed;
}

.s3sos-legal-link__content strong,
.s3sos-legal-link__content small {
    display: block;
}

.s3sos-legal-link__content strong {
    color: var(--s3sos-navy);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.35;
}

.s3sos-legal-link__content small {
    margin-top: 5px;
    color: var(--s3sos-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.s3sos-legal-links a > svg {
    width: 18px;
    height: 18px;
    color: var(--s3sos-muted);
    transition: color 180ms ease, transform 180ms ease;
}

.s3sos-legal-links a:hover > svg {
    color: var(--s3sos-blue);
    transform: translate(2px, -2px);
}

.s3sos-legal-panel--inrs .s3sos-legal-links a:hover > svg {
    color: var(--s3sos-burgundy);
}

.s3sos-legal-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 17px;
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(40, 103, 178, 0.18);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(17, 24, 79, 0.055);
}

.s3sos-legal-note .s3sos-icon-box {
    width: 44px;
    height: 44px;
    color: var(--s3sos-blue);
    background: var(--s3sos-soft-blue);
}

.s3sos-legal-note p {
    color: var(--s3sos-text);
    font-size: 0.87rem;
    line-height: 1.65;
}

.s3sos-legal-note strong {
    color: var(--s3sos-navy);
    font-weight: 950;
}

.s3sos-legal-disclaimer {
    max-width: 930px;
    margin: 14px auto 0 !important;
    color: var(--s3sos-muted);
    font-size: 0.72rem;
    line-height: 1.6;
    text-align: center;
}

/* CTA */
.s3sos-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 112px) 0;
    color: var(--s3sos-white);
    background:
        radial-gradient(circle at 82% 20%, rgba(154, 29, 63, 0.42), transparent 31%),
        linear-gradient(135deg, var(--s3sos-navy-deep), var(--s3sos-navy));
}

.s3sos-cta::after {
    position: absolute;
    right: -180px;
    bottom: -310px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.s3sos-cta__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.48fr);
    align-items: center;
    gap: 50px;
}

.s3sos-cta h2 {
    max-width: 790px;
    color: var(--s3sos-white);
    font-size: clamp(2.2rem, 4.8vw, 4.15rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.s3sos-cta__inner > div:first-child > p:last-child {
    max-width: 720px;
    margin-top: 18px !important;
    color: rgba(255, 255, 255, 0.69);
    font-size: 1rem;
    line-height: 1.72;
}

.s3sos-cta__actions {
    display: grid;
    gap: 10px;
}

.s3sos-cta__email {
    justify-self: center;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.82rem;
    font-weight: 800;
}

/* Fixed mobile actions and back to top */
.s3sos-mobile-actions {
    display: none;
}

.s3sos-back-top {
    position: fixed;
    z-index: 9000;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--s3sos-white);
    background: var(--s3sos-navy);
    box-shadow: 0 14px 35px rgba(5, 13, 50, 0.24);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

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

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

.s3sos-back-top svg {
    width: 21px;
    height: 21px;
}

/* Dialogs */
.s3sos-dialog {
    z-index: 100000;
    width: min(96vw, 1180px);
    max-width: 1180px;
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: 22px;
    color: var(--s3sos-text);
    background: var(--s3sos-white);
    box-shadow: 0 35px 110px rgba(3, 8, 32, 0.45);
}

.s3sos-dialog[open] {
    animation: s3sos-dialog-in 180ms ease both;
}

.s3sos-dialog::backdrop {
    background: rgba(5, 9, 31, 0.78);
    backdrop-filter: blur(7px);
}

.s3sos-dialog.is-fallback-open {
    position: fixed;
    inset: 3vh 2vw;
    display: block;
    margin: auto;
}

.s3sos-dialog__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: min(90vh, 820px);
}

.s3sos-dialog__shell--form {
    display: block;
    min-height: 0;
    max-height: 92vh;
    overflow: auto;
}

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

.s3sos-dialog__header > div {
    min-width: 0;
}

.s3sos-dialog__header span {
    display: block;
    margin-bottom: 3px;
    color: var(--s3sos-burgundy);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.s3sos-dialog__header h2 {
    overflow: hidden;
    color: var(--s3sos-navy);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 920;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.s3sos-dialog__close:hover {
    color: var(--s3sos-white);
    border-color: var(--s3sos-burgundy);
    background: var(--s3sos-burgundy);
}

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

.s3sos-document-viewer {
    display: grid;
    min-height: 64vh;
    overflow: auto;
    place-items: stretch;
    background: #e9ecf2;
}

.s3sos-document-viewer iframe,
.s3sos-document-viewer object {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 64vh;
    border: 0;
    background: #fff;
}

.s3sos-document-viewer img {
    max-width: min(100%, 1400px);
    max-height: none;
    margin: 24px auto;
    object-fit: contain;
    box-shadow: 0 18px 45px rgba(11, 17, 54, 0.18);
}

.s3sos-viewer-placeholder {
    display: grid;
    place-content: center;
    gap: 12px;
    min-height: 64vh;
    color: var(--s3sos-muted);
    text-align: center;
}

.s3sos-spinner {
    width: 36px;
    height: 36px;
    margin: auto;
    border: 3px solid rgba(17, 24, 79, 0.15);
    border-top-color: var(--s3sos-burgundy);
    border-radius: 50%;
    animation: s3sos-spin 0.8s linear infinite;
}

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

.s3sos-dialog__footer p {
    color: var(--s3sos-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

/* Form */
.s3sos-form {
    padding: 24px;
}

.s3sos-form__intro {
    margin-bottom: 18px !important;
    color: var(--s3sos-muted);
    font-size: 0.82rem;
}

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

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

.s3sos-form-grid__full {
    grid-column: 1 / -1;
}

.s3sos-form label > span {
    color: var(--s3sos-navy);
    font-size: 0.77rem;
    font-weight: 850;
}

.s3sos-form em {
    color: var(--s3sos-danger);
    font-style: normal;
}

.s3sos-form input,
.s3sos-form select,
.s3sos-form textarea {
    width: 100%;
    border: 1px solid var(--s3sos-border);
    border-radius: 11px;
    color: var(--s3sos-ink);
    background: var(--s3sos-white);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.s3sos-form input,
.s3sos-form select {
    min-height: 47px;
    padding: 10px 12px;
}

.s3sos-form textarea {
    min-height: 135px;
    padding: 12px;
    resize: vertical;
}

.s3sos-form input:hover,
.s3sos-form select:hover,
.s3sos-form textarea:hover {
    border-color: #b8c1d0;
}

.s3sos-consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    background: var(--s3sos-soft);
}

.s3sos-consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.s3sos-consent span {
    color: var(--s3sos-muted) !important;
    font-size: 0.76rem !important;
    font-weight: 650 !important;
    line-height: 1.5;
}

.s3sos-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 20px;
}

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

.s3sos-form__status {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 750;
}

.s3sos-form__status.is-visible {
    display: block;
}

.s3sos-form__status.is-success {
    color: #0f5f3d;
    background: #eaf7f1;
}

.s3sos-form__status.is-error {
    color: #8a1c31;
    background: #faedf1;
}

.s3sos-form [aria-invalid="true"] {
    border-color: var(--s3sos-danger);
    box-shadow: 0 0 0 3px rgba(163, 29, 52, 0.13);
}

.s3sos-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* Progressive enhancement */
.s3sos.s3sos--js [data-s3sos-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes s3sos-spin {
    to { transform: rotate(360deg); }
}

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

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

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

    .s3sos-process li:nth-child(3),
    .s3sos-practical-grid article:nth-child(3) {
        border-left: 0;
    }

    .s3sos-process li:nth-child(n + 3),
    .s3sos-practical-grid article:nth-child(n + 3) {
        border-top: 1px solid var(--s3sos-border);
    }

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

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

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

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

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

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

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

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

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

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

    .s3sos-quality-link .s3sos-button {
        grid-column: 2;
        justify-self: start;
    }

    .s3sos-cta__actions {
        width: min(100%, 350px);
    }
}

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

    .s3sos {
        padding-bottom: 72px;
    }

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

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

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

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

    .s3sos-actions,
    .s3sos-actions .s3sos-button {
        width: 100%;
    }

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

    .s3sos-hero-badge {
        width: 108px;
        height: 108px;
    }

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

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

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

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

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

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

    .s3sos-category__count {
        display: none;
    }

    .s3sos-category__heading em {
        display: none;
    }

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

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

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

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

    .s3sos-process li,
    .s3sos-practical-grid article {
        min-height: 0;
    }

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

    .s3sos-chart {
        padding: 18px;
    }

    .s3sos-source-card__content {
        padding: 20px;
    }

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

    .s3sos-legal-panel__header {
        min-height: 0;
        padding: 21px;
    }

    .s3sos-legal-links a {
        grid-template-columns: minmax(74px, auto) minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 0;
        padding: 17px;
    }

    .s3sos-legal-note {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .s3sos-quality-link .s3sos-button {
        grid-column: 1;
    }

    .s3sos-resource-links a + a {
        border-top: 1px solid var(--s3sos-border);
        border-left: 0;
    }

    .s3sos-dialog__footer,
    .s3sos-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

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

    .s3sos-form-grid__full {
        grid-column: auto;
    }

    .s3sos-form__footer .s3sos-button {
        width: 100%;
    }

    .s3sos-mobile-actions {
        position: fixed;
        z-index: 8500;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 62px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(9, 16, 51, 0.96);
        box-shadow: 0 -12px 32px rgba(5, 10, 35, 0.2);
        backdrop-filter: blur(14px);
    }

    .s3sos-mobile-actions a,
    .s3sos-mobile-actions button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        color: var(--s3sos-white) !important;
        background: transparent;
        font-size: 0.78rem;
        font-weight: 900;
    }

    .s3sos-mobile-actions button {
        border-left: 1px solid rgba(255, 255, 255, 0.14);
        background: var(--s3sos-burgundy);
    }

    .s3sos-mobile-actions svg {
        width: 18px;
        height: 18px;
    }

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

    .s3sos-dialog {
        width: calc(100vw - 18px);
        max-height: 96vh;
        border-radius: 16px;
    }

    .s3sos-dialog__header,
    .s3sos-dialog__footer,
    .s3sos-form {
        padding-right: 17px;
        padding-left: 17px;
    }

    .s3sos-dialog__header h2 {
        white-space: normal;
    }
}

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

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

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

    .s3sos-legal-panel__icon {
        width: 50px;
        height: 50px;
    }

    .s3sos-legal-links a {
        grid-template-columns: 1fr auto;
    }

    .s3sos-legal-link__reference {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .s3sos-hero-badge {
        width: 96px;
        height: 96px;
    }
}

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

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

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

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

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

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

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

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