/**
 * 3SAFE – Formations Sécurité Encadrants & Managers
 * Présentation alignée sur le plugin Formations CSE 3SAFE.
 * Tous les sélecteurs front-end sont limités à .s3mgr ou .s3mgr-dialog.
 */

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

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

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

.s3mgr,
.s3mgr-dialog {
    --s3mgr-navy: #11184f;
    --s3mgr-navy-deep: #091033;
    --s3mgr-navy-2: #222b72;
    --s3mgr-blue: #2867b2;
    --s3mgr-blue-2: #3b7fc4;
    --s3mgr-burgundy: #9a1d3f;
    --s3mgr-burgundy-2: #74152f;
    --s3mgr-teal: #167c82;
    --s3mgr-ink: #15192d;
    --s3mgr-muted: #626b7c;
    --s3mgr-border: #dce1eb;
    --s3mgr-soft: #f3f5f9;
    --s3mgr-soft-blue: #edf4fb;
    --s3mgr-white: #ffffff;
    --s3mgr-success: #16724a;
    --s3mgr-danger: #a31d34;
    --s3mgr-shadow-sm: 0 10px 28px rgba(17, 24, 79, 0.08);
    --s3mgr-shadow: 0 18px 45px rgba(16, 24, 78, 0.12);
    --s3mgr-shadow-lg: 0 28px 80px rgba(5, 13, 50, 0.24);
    --s3mgr-radius-sm: 14px;
    --s3mgr-radius: 22px;
    --s3mgr-radius-lg: 32px;
    --s3mgr-focus: 0 0 0 4px rgba(40, 103, 178, 0.24);
}

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

.s3mgr {
    position: relative;
    z-index: 0;
    max-width: 100%;
    overflow: hidden;
    overflow: clip;
    color: var(--s3mgr-ink);
    background: var(--s3mgr-white);
    font-family: Lato, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

.s3mgr :where(a) {
    color: inherit;
    text-decoration: none;
}

.s3mgr :where(button, input, select, textarea) {
    font: inherit;
}

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

.s3mgr img,
.s3mgr-dialog img {
    display: block;
    max-width: 100%;
}

.s3mgr svg,
.s3mgr-dialog svg {
    display: block;
}

.s3mgr-container {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1180px);
    margin-inline: auto;
}

.s3mgr-skip {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--s3mgr-white) !important;
    background: var(--s3mgr-navy-deep);
    font-weight: 850;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.s3mgr-skip:focus {
    transform: none;
}

.s3mgr-kicker {
    margin-bottom: 14px !important;
    color: var(--s3mgr-burgundy);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.35;
    text-transform: uppercase;
}

/* Boutons */
.s3mgr-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;
}

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

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

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

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

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

.s3mgr-button--light:hover,
.s3mgr-button--light:focus-visible {
    background: #f6f8fc;
}

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

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

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

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

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

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

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

/* Hero */
.s3mgr-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 108px) 0 clamp(86px, 10vw, 132px);
    color: var(--s3mgr-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(--s3mgr-navy-deep) 0%, var(--s3mgr-navy) 55%, var(--s3mgr-navy-2) 100%);
}

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

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

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

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

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

.s3mgr-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(--s3mgr-white);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

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

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

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

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

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

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

.s3mgr-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;
}

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

.s3mgr-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;
}

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

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

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

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

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

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

.s3mgr-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;
}

.s3mgr-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);
}

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

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

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

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

/* Trois accès rapides */
.s3mgr-overview {
    position: relative;
    z-index: 3;
    margin-top: -52px;
}

.s3mgr--no-header .s3mgr-overview {
    margin-top: 0;
    padding-top: 34px;
}

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

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

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

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

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

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

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

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

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

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

/* Sections générales */
.s3mgr-section {
    position: relative;
    padding: clamp(76px, 8vw, 112px) 0;
}

.s3mgr-section--programmes,
.s3mgr-section--practical,
.s3mgr-section--prices {
    background: var(--s3mgr-soft);
}

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

.s3mgr-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
    align-items: end;
    gap: 44px;
    margin-bottom: 42px;
}

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

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

.s3mgr-section-heading--single {
    grid-template-columns: 1fr;
}

/* Catégories pleine largeur */
.s3mgr-categories {
    display: grid;
    gap: 18px;
}

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

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

.s3mgr-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Cartes de programme identiques à la famille CSE */
.s3mgr-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

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

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

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

.s3mgr-program-card__version {
    flex: 0 0 auto;
    color: var(--s3mgr-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Statistiques */
.s3mgr-section--stats {
    position: relative;
    overflow: hidden;
    color: var(--s3mgr-white);
    background:
        radial-gradient(circle at 11% 12%, rgba(154, 29, 63, 0.24), transparent 31%),
        radial-gradient(circle at 92% 16%, rgba(59, 127, 196, 0.32), transparent 28%),
        linear-gradient(135deg, var(--s3mgr-navy-deep), var(--s3mgr-navy));
}

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

.s3mgr-section--stats::before {
    top: -350px;
    left: -260px;
    width: 680px;
    height: 680px;
}

.s3mgr-section--stats::after {
    right: -260px;
    bottom: -360px;
    width: 720px;
    height: 720px;
}

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

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

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

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

.s3mgr-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(--s3mgr-radius);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

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

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

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

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

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

.s3mgr-stats-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
}

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

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

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

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

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

.s3mgr-stat-label > span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffbdcc;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.67rem;
    font-weight: 900;
}

.s3mgr-stat-label strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.45;
}

.s3mgr-stat-track {
    height: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(5, 12, 47, 0.34);
}

.s3mgr-stat-bar {
    display: flex;
    width: var(--s3mgr-value);
    min-width: 92px;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    padding-inline: 12px;
    border-radius: inherit;
    color: var(--s3mgr-white);
    background: linear-gradient(90deg, var(--s3mgr-blue), #4b8fd2);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.s3mgr-stat-bar--2 {
    background: linear-gradient(90deg, var(--s3mgr-burgundy-2), var(--s3mgr-burgundy));
}

.s3mgr-stat-bar--3 {
    background: linear-gradient(90deg, #0e6d73, var(--s3mgr-teal));
}

.s3mgr-stat-bar--4 {
    background: linear-gradient(90deg, #5c4cb4, #7666d0);
}


/* Modalités pratiques */
.s3mgr-practical-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--s3mgr-border);
    border-radius: var(--s3mgr-radius);
    background: var(--s3mgr-white);
    box-shadow: var(--s3mgr-shadow-sm);
}

.s3mgr-practical-grid article {
    min-height: 250px;
    padding: 30px 27px;
}

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

.s3mgr-practical-grid article > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    color: var(--s3mgr-burgundy);
    background: #f8e9ee;
}

.s3mgr-practical-grid article:nth-child(2) > span {
    color: var(--s3mgr-blue);
    background: var(--s3mgr-soft-blue);
}

.s3mgr-practical-grid article:nth-child(3) > span {
    color: var(--s3mgr-teal);
    background: #e9f6f4;
}

.s3mgr-practical-grid article > span svg {
    width: 26px;
    height: 26px;
}

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

.s3mgr-practical-grid p {
    margin-top: 11px !important;
    color: var(--s3mgr-muted);
    font-size: 0.92rem;
    line-height: 1.72;
}

/* Tarifs optionnels */
.s3mgr-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.s3mgr-price-grid article {
    display: flex;
    min-height: 265px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--s3mgr-border);
    border-radius: var(--s3mgr-radius);
    background: var(--s3mgr-white);
    box-shadow: var(--s3mgr-shadow-sm);
}

.s3mgr-price-grid small {
    color: var(--s3mgr-burgundy);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.s3mgr-price-grid strong {
    margin-top: 15px;
    color: var(--s3mgr-navy);
    font-size: 2.2rem;
    line-height: 1;
}

.s3mgr-price-grid p {
    margin-top: 17px !important;
    color: var(--s3mgr-muted);
    line-height: 1.65;
}

.s3mgr-price-grid a {
    margin-top: auto;
    padding-top: 24px;
    color: var(--s3mgr-blue) !important;
    font-weight: 850;
}

/* Appel à l’action */
.s3mgr-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 8vw, 104px) 0;
    color: var(--s3mgr-white);
    background:
        radial-gradient(circle at 90% 20%, rgba(59, 127, 196, 0.30), transparent 30%),
        linear-gradient(135deg, var(--s3mgr-navy), var(--s3mgr-navy-deep));
}

.s3mgr-cta::after {
    position: absolute;
    right: -310px;
    bottom: -460px;
    width: 760px;
    height: 760px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
}

.s3mgr-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 60px;
}

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

.s3mgr-cta h2 {
    max-width: 760px;
    color: var(--s3mgr-white);
    font-size: clamp(2.1rem, 4.8vw, 4.1rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.s3mgr-cta h2 + p {
    max-width: 720px;
    margin-top: 20px !important;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
    line-height: 1.72;
}

.s3mgr-cta__actions {
    display: grid;
    gap: 11px;
    justify-items: stretch;
}

.s3mgr-cta__actions .s3mgr-text-link {
    justify-content: center;
}

/* Dialogues natifs */
.s3mgr-dialog {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    color: var(--s3mgr-ink);
    background: transparent;
    font-family: Lato, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.s3mgr-dialog--contact {
    width: min(920px, calc(100vw - 32px));
}

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

.s3mgr-dialog[open] {
    animation: s3mgr-dialog-in 0.22s ease both;
}

.s3mgr-dialog__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    background: var(--s3mgr-white);
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.s3mgr-dialog__panel--contact {
    display: block;
    overflow: auto;
}

.s3mgr-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    padding: 18px 22px 18px 26px;
    border-bottom: 1px solid var(--s3mgr-border);
    background: var(--s3mgr-white);
}

.s3mgr-dialog__header p {
    margin-bottom: 4px !important;
    color: var(--s3mgr-burgundy);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

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

.s3mgr-dialog__header button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--s3mgr-border);
    border-radius: 50%;
    color: var(--s3mgr-navy);
    background: var(--s3mgr-white);
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.s3mgr-dialog__header button:hover {
    color: var(--s3mgr-white);
    background: var(--s3mgr-burgundy);
}

.s3mgr-document-viewer {
    display: grid;
    min-height: min(68vh, 760px);
    place-items: center;
    overflow: auto;
    background: #e9edf4;
}

.s3mgr-document-viewer iframe,
.s3mgr-document-viewer object,
.s3mgr-document-viewer embed {
    width: 100%;
    height: min(68vh, 760px);
    border: 0;
    background: var(--s3mgr-white);
}

.s3mgr-document-viewer img {
    max-width: 100%;
    max-height: min(68vh, 760px);
    margin: auto;
    object-fit: contain;
}

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

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

/* Formulaire */
.s3mgr-contact-form {
    padding: 26px;
}

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

.s3mgr-form-grid label,
.s3mgr-consent {
    min-width: 0;
}

.s3mgr-form-grid label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--s3mgr-navy);
    font-size: 0.82rem;
    font-weight: 850;
}

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

.s3mgr-form-grid input,
.s3mgr-form-grid select,
.s3mgr-form-grid textarea {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid #cfd6e3;
    border-radius: 11px;
    color: var(--s3mgr-ink);
    background: var(--s3mgr-white);
    box-shadow: none;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.s3mgr-form-grid textarea {
    min-height: 132px;
    resize: vertical;
}

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

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

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

.s3mgr-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 18px;
    color: var(--s3mgr-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

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

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

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

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

.s3mgr-form-footer button[disabled] {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

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

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

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

/* Actions mobiles et retour haut */
.s3mgr-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);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

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

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

.s3mgr-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(--s3mgr-white);
    background: var(--s3mgr-navy);
    box-shadow: var(--s3mgr-shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

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

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

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

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

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

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

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

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

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

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

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

    .s3mgr-practical-grid article:last-child {
        grid-column: 1 / -1;
    }

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

}

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

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

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

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

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

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

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

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


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

    .s3mgr-price-grid {
        grid-template-columns: 1fr;
    }
}

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

    .s3mgr {
        padding-bottom: 72px;
    }

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

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

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

    .s3mgr-brand small {
        font-size: 0.76rem;
    }

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

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

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

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

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

    .s3mgr--no-header .s3mgr-overview {
        margin-top: 0;
    }

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

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

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

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

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

    .s3mgr-category__count {
        display: none;
    }

    .s3mgr-category__heading em {
        display: none;
    }

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

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

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

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

    .s3mgr-practical-grid article:last-child {
        grid-column: auto;
    }

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

    .s3mgr-chart {
        padding: 18px;
    }


    .s3mgr-dialog {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
    }

    .s3mgr-dialog__panel {
        max-height: calc(100vh - 18px);
        border-radius: 18px;
    }

    .s3mgr-dialog__header {
        min-height: 76px;
        padding: 14px 15px 14px 18px;
    }

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

    .s3mgr-dialog__footer .s3mgr-button,
    .s3mgr-form-footer .s3mgr-button {
        width: 100%;
    }

    .s3mgr-contact-form {
        padding: 18px;
    }

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

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

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

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

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

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

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

    .s3mgr-brand strong {
        font-size: 1.05rem;
    }

    .s3mgr-brand small {
        max-width: 190px;
        white-space: normal;
    }
}

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

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

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

    .s3mgr {
        padding-bottom: 0;
    }

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

    .s3mgr-hero :where(h1, h2, h3),
    .s3mgr-section-heading--light h2,
    .s3mgr-cta h2 {
        color: #11184f;
    }

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

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

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


/* Ajustements spécifiques à la page HSE */
.s3mgr-hero-card__badges img:only-child { margin-inline: auto; }
.s3mgr-program-card h3 { hyphens: auto; }
.s3mgr-stat-summary span { line-height: 1.45; }
@media (max-width: 520px) {
    .s3mgr-hero-card__metric { grid-template-columns: 1fr; gap: 7px; }
    .s3mgr-hero-card__metric strong { white-space: normal; }
}
