/* ==========================================================================
   SMMS - Header Helix Ultimate
   Associé à header-smms-clean-v2.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
    --smms-header-height: 112px;
    --smms-header-bg-start: #ffffff;
    --smms-header-bg-end: #eaf2f7;
    --smms-header-border: #ffd833;
    --smms-text: #2d2d2d;
    --smms-text-hover: #5090b4;
    --smms-primary: #5090b4;
    --smms-primary-hover: #407091;
    --smms-secondary: #ffd833;
    --smms-accent: #407091;
    --smms-login-border: #c8d2dc;
    --smms-login-bg: #ffffff;
    --smms-login-hover-bg: #f3f7fa;
    --smms-badge-angle: 0deg;
}

/* =========================================================
   SMMS - Conseil d'administration
   ========================================================= */
.smms-board-section > .sppb-row-container,
.smms-specialties-section > .sppb-row-container,
.smms-partners-section > .sppb-row-container,
.sppb-row-container.smms-board-section,
.sppb-row-container.smms-specialties-section,
.sppb-row-container.smms-partners-section,
#sp-page-builder .sppb-section:has(.smms-board) > .sppb-row-container,
#sp-page-builder .sppb-section:has(.smms-specialties) > .sppb-row-container,
#sp-page-builder .sppb-section:has(.smms-partners) > .sppb-row-container,
#sp-page-builder .sppb-section:has(.smms-join) > .sppb-row-container {
    width: 100%;
    max-width: none !important;
    padding-right: 0;
    padding-left: 0;
}

/* =========================================================
   SMMS - Appel à l'adhésion
   Le fond et les espacements extérieurs sont gérés par SPPB.
   ========================================================= */
.smms-join {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.smms-join__container {
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 16px;
}

.smms-join__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: clamp(48px, 6vw, 90px);
    align-items: stretch;
}

.smms-join__content {
    max-width: 720px;
    padding: clamp(28px, 3.2vw, 52px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 5px solid #ffd833;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 22px 50px rgba(22, 40, 60, 0.18);
    backdrop-filter: blur(8px);
}

.smms-join__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 700;
}

.smms-join__title {
    position: relative;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(36px, 3.3vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.smms-join__title::after {
    display: block;
    width: 76px;
    height: 5px;
    margin-top: 18px;
    border-radius: 999px;
    background: #ffd833;
    content: "";
}

.smms-join__intro {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.7;
}

.smms-join__benefits {
    display: grid;
    gap: 10px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.smms-join__benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 600;
}

.smms-join__check {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 50%;
    color: #202b35;
    background: #ffd833;
    font-size: 13px;
}

.smms-join__button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 15px 28px;
    border: 2px solid #ffd833;
    border-radius: 6px;
    color: #202b35 !important;
    background: #ffd833;
    box-shadow: 0 14px 30px rgba(22, 40, 60, 0.28);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.smms-join__button:hover,
.smms-join__button:focus {
    border-color: #e9c42e;
    color: #202b35 !important;
    background: #e9c42e;
}

.smms-join__media {
    position: relative;
    display: flex;
    align-items: stretch;
    padding: 18px 18px 18px 0;
}

.smms-join__media::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 62%;
    border-radius: 22px;
    background: #ffd833;
    content: "";
}

.smms-join__media::after {
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 92px;
    height: 92px;
    border: 18px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    content: "";
}

.smms-join__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 420px;
    border: 7px solid rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 48px rgba(22, 40, 60, 0.28);
}

.smms-join__note {
    position: absolute;
    z-index: 2;
    right: 40px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: calc(100% - 44px);
    padding: 15px 18px;
    border-bottom: 4px solid #ffd833;
    border-radius: 12px;
    color: #202b35;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 40, 60, 0.22);
}

.smms-join__note-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: #5090b4;
    font-size: 20px;
}

.smms-join__note-title,
.smms-join__note-text {
    margin: 0;
}

.smms-join__note-title {
    color: #202b35;
    font-size: 17px;
    font-weight: 800;
}

.smms-join__note-text {
    color: #667684;
    font-size: 13px;
}

@media (max-width: 991px) {
    .smms-join__grid {
        grid-template-columns: 1fr;
    }

    .smms-join__content {
        max-width: none;
    }

    .smms-join__media {
        max-width: 720px;
    }
}

@media (max-width: 575px) {
    .smms-join__container {
        max-width: calc(100% - 16px);
        padding: 0 8px;
    }

    .smms-join__grid {
        gap: 36px;
    }

    .smms-join__content {
        padding: 27px 22px;
        border-left-width: 4px;
    }

    .smms-join__button {
        width: 100%;
    }

    .smms-join__image {
        min-height: 340px;
    }

    .smms-join__media {
        padding: 10px 10px 10px 0;
    }

    .smms-join__note {
        right: 20px;
        bottom: 20px;
        max-width: calc(100% - 40px);
        padding: 12px;
    }
}

.smms-board {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.smms-board__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 16px;
}

.smms-board__header {
    max-width: 1050px;
    margin: 0 auto 48px;
    text-align: center;
}

.smms-board__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 9px 17px;
    border: 1px solid rgba(80, 144, 180, 0.12);
    border-radius: 999px;
    color: #5090b4;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 55, 75, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.smms-board__title {
    margin: 0 0 15px;
    color: #202b35;
    font-size: clamp(34px, 3.1vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.smms-board__intro {
    max-width: 850px;
    margin: 0 auto;
    color: #667684;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.65;
}

.smms-board__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.smms-board-card {
    overflow: hidden;
    border: 1px solid rgba(80, 144, 180, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 55, 75, 0.10);
}

.smms-board-card__visual {
    position: relative;
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5090b4 0%, #78aec9 100%);
}

.smms-board-card:nth-child(even) .smms-board-card__visual {
    background: linear-gradient(135deg, #3f7f9f 0%, #5090b4 62%, #ffd833 180%);
}

.smms-board-card__avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
}

.smms-board-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* L'icône reste visible uniquement lorsqu'aucune photo n'est présente. */
.smms-board-card__avatar img + .fas {
    display: none;
}

.smms-board-card__avatar > .fas {
    color: #5090b4;
    font-size: 54px;
}

.smms-board-card__role-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #202b35;
    background: #ffd833;
    box-shadow: 0 5px 14px rgba(32, 43, 53, 0.15);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.smms-board-card__content {
    padding: 23px 18px 25px;
    text-align: center;
}

.smms-board-card__name {
    margin: 0 0 6px;
    color: #202b35;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.smms-board-card__role {
    margin: 0;
    color: #5090b4;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.smms-board__footer {
    margin-top: 42px;
    text-align: center;
}

.smms-board__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5090b4;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.smms-board__link:hover,
.smms-board__link:focus {
    gap: 14px;
    color: #397a9e;
}

@media (max-width: 1199px) {
    .smms-board {
        padding: 0;
    }

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

@media (max-width: 767px) {
    .smms-board {
        padding: 0;
    }

    .smms-board__container {
        max-width: calc(100% - 16px);
        padding: 0 8px;
    }

    .smms-board__header {
        margin-bottom: 34px;
    }

    .smms-board__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .smms-board-card__visual {
        min-height: 170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smms-board__link {
        transition: none;
    }
}

/* =========================================================
   SMMS - Spécialités représentées
   Le fond et les espacements extérieurs sont gérés par SPPB.
   ========================================================= */
.smms-specialties__container {
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 16px;
}

.smms-specialties__header {
    max-width: 880px;
    margin: 0 auto 46px;
    text-align: center;
}

.smms-specialties__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 9px 17px;
    border-radius: 999px;
    color: #5090b4;
    background: #eaf2f7;
    font-size: 14px;
    font-weight: 700;
}

.smms-specialties__title {
    margin: 0 0 15px;
    color: #202b35;
    font-size: clamp(34px, 3.1vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.smms-specialties__intro {
    margin: 0;
    color: #667684;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.65;
}

.smms-specialties__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.smms-specialty {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    min-height: 265px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px 20px;
    text-align: left;
}

.smms-specialty::before {
    position: absolute;
    z-index: -1;
    inset: 0 7px;
    border: 1px solid rgba(80, 144, 180, 0.14);
    border-radius: 10px;
    background: linear-gradient(145deg, #fff 0%, #f7fafc 100%);
    box-shadow: 0 12px 28px rgba(31, 55, 75, 0.10);
    content: "";
    transform: skewX(-7deg);
}

.smms-specialty__icon {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 70px;
    height: 52px;
    margin: 0 0 22px 8px;
    place-items: center;
    color: #fff;
    background: transparent;
    font-size: 23px;
}

.smms-specialty__icon::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 5px;
    background: linear-gradient(135deg, #5090b4 0%, #3d8fbd 100%);
    box-shadow: 0 8px 18px rgba(80, 144, 180, 0.22);
    content: "";
    transform: skewX(-7deg);
}

.smms-specialty__title {
    display: flex;
    min-height: 60px;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0 0 12px;
    color: #202b35;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.smms-specialty__title::after {
    display: block;
    width: 30px;
    height: 3px;
    margin: 10px 0 0;
    border-radius: 999px;
    background: #ffd833;
    content: "";
}

.smms-specialty__description {
    margin: 0;
    color: #52687a;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 1399px) {
    .smms-specialties__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .smms-specialties__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .smms-specialties__container {
        max-width: calc(100% - 16px);
        padding: 0 8px;
    }

    .smms-specialties__header {
        margin-bottom: 34px;
    }

    .smms-specialties__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .smms-specialty {
        min-height: 230px;
        padding: 24px 26px 20px;
    }
}

/* =========================================================
   SMMS - Partenaires institutionnels
   Le fond et les espacements extérieurs sont gérés par SPPB.
   ========================================================= */
.smms-partners__container {
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 16px;
}

.smms-partners__header {
    max-width: 900px;
    margin: 0 auto 48px;
    text-align: center;
}

.smms-partners__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    padding: 9px 17px;
    border: 1px solid rgba(80, 144, 180, 0.12);
    border-radius: 999px;
    color: #5090b4;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 55, 75, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.smms-partners__title {
    margin: 0 0 15px;
    color: #202b35;
    font-size: clamp(34px, 3.1vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.smms-partners__intro {
    margin: 0;
    color: #667684;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.65;
}

.smms-partners__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px;
}

.smms-partner {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border: 1px solid rgba(80, 144, 180, 0.14);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 55, 75, 0.09);
}

.smms-partner__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 118px;
    object-fit: contain;
}

.smms-partners__footer {
    margin-top: 42px;
    text-align: center;
}

.smms-partners__question {
    margin: 0 0 13px;
    color: #667684;
    font-size: 16px;
}

.smms-partners__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5090b4;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.smms-partners__link:hover,
.smms-partners__link:focus {
    gap: 14px;
    color: #397a9e;
}

@media (max-width: 1199px) {
    .smms-partners__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .smms-partners__container {
        max-width: calc(100% - 16px);
        padding: 0 8px;
    }

    .smms-partners__header {
        margin-bottom: 34px;
    }

    .smms-partners__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .smms-partner {
        min-height: 160px;
        padding: 24px;
    }
}

/* =========================================================
   SMMS - Articles événements
   Composants génériques et réutilisables
   ========================================================= */

.smms-event {
    --event-border: #e4e8ec;
    --event-soft-bg: #f6f8f9;
    --event-text-muted: #66717a;

    width: 100%;
    max-width: none;
    margin: 0;
}

/* =========================================================
   INTRODUCTION
   ========================================================= */

.event-header {
    margin-bottom: 2rem;
}

.event-kicker {
    margin: 0 0 .5rem;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.event-title {
    margin: 0 0 1rem;
}

.event-intro {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Introduction des anciens congrès. */
.smeds-event__intro {
    margin: 0 0 32px;
    padding: 8px 0 28px;
    border-bottom: 1px solid rgba(80, 144, 180, 0.28);
}

.smeds-event__intro > h1 {
    margin: 0 0 22px;
    color: var(--smms-text);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.smeds-event__intro > h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--smms-secondary);
}

.smeds-event__intro > p {
    margin: 0;
    color: var(--event-text-muted, #66717a);
    font-size: 1.05rem;
    line-height: 1.75;
}

.smeds-event__intro > p:first-of-type {
    color: var(--smms-text);
    font-size: 1.15rem;
}

.smeds-event__intro > p + p {
    margin-top: 12px;
}

.smeds-event__intro strong {
    color: var(--smms-primary);
    font-weight: 700;
}

@media (max-width: 767px) {
    .smeds-event__intro {
        margin-bottom: 24px;
        padding: 4px 0 22px;
    }

    .smeds-event__intro > h1 {
        margin-bottom: 18px;
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .smeds-event__intro > p,
    .smeds-event__intro > p:first-of-type {
        font-size: 1rem;
        line-height: 1.65;
    }
}

/* Informations pratiques des événements. */
.smeds-event__info {
    display: grid;
    grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 32px 0;
    padding: 28px 30px;
    border: 1px solid rgba(80, 144, 180, 0.24);
    border-radius: 10px;
    background: #f7fafc;
}

.smeds-event__info > h2 {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--smms-secondary);
    color: var(--smms-text);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    line-height: 1.2;
}

.smeds-event__info > p {
    margin: 0;
    padding: 18px 22px;
    border-left: 4px solid var(--smms-primary);
    border-radius: 0 8px 8px 0;
    color: var(--smms-text);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(22, 40, 60, 0.06);
    font-size: 1rem;
    line-height: 2.05;
}

.smeds-event__info strong {
    display: inline-block;
    min-width: 138px;
    margin-right: 10px;
    color: var(--smms-primary);
    font-weight: 750;
}

@media (max-width: 767px) {
    .smeds-event__info {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 24px 0;
        padding: 22px 20px;
    }

    .smeds-event__info > h2 {
        padding-bottom: 10px;
    }

    .smeds-event__info > p {
        padding: 15px 17px;
        line-height: 1.55;
    }

    .smeds-event__info strong {
        display: block;
        min-width: 0;
        margin: 0 0 2px;
    }

    .smeds-event__info strong:not(:first-child) {
        margin-top: 12px;
    }
}

/* =========================================================
   INFORMATIONS PRINCIPALES
   ========================================================= */

.event-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 2rem 0 3rem;
    overflow: hidden;
    border: 1px solid var(--event-border);
    border-radius: 8px;
    background: var(--event-border);
}

.event-meta-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1.25rem;
    background: #fff;
}

.event-meta-label {
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--event-text-muted);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.event-section {
    margin: 3rem 0;
}

.event-section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--event-border);
}

.event-section-label {
    grid-column: 1 / -1;
    margin-bottom: .35rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--event-text-muted);
}

.event-section-title {
    margin: 0;
}

.event-section-time {
    font-weight: 700;
    white-space: nowrap;
}

.event-moderators {
    margin: 0 0 1.5rem;
    color: var(--event-text-muted);
}

/* =========================================================
   SESSION SIMPLE
   ========================================================= */

.event-session {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--event-border);
}

.event-session-heading {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .75rem;
}

.event-session-heading h3 {
    margin: 0;
}

/* =========================================================
   PROGRAMME / INTERVENTIONS
   ========================================================= */

.event-program {
    border-top: 1px solid var(--event-border);
}

/* Programme synthétique des anciens congrès. */
.smeds-event__program {
    counter-reset: smeds-program-section;
    margin: 42px 0 0;
    padding: 30px 32px 32px;
    border-left: 4px solid var(--smms-primary);
    border-radius: 0 10px 10px 0;
    background: #f7fafc;
}

.smeds-event__program > h2 {
    margin: 0 0 24px;
    padding: 0 0 14px;
    border-bottom: 2px solid var(--smms-secondary);
    color: var(--smms-text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.smeds-event__program > h3 {
    counter-increment: smeds-program-section;
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 18px 0 8px;
    border-top: 1px solid rgba(80, 144, 180, 0.22);
    color: var(--smms-text);
    font-size: 1.05rem;
    line-height: 1.45;
}

.smeds-event__program > h3::before {
    content: counter(smeds-program-section, decimal-leading-zero);
    display: inline-flex;
    flex: 0 0 32px;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--smms-primary);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
}

.smeds-event__program > p {
    margin: 0;
    padding: 4px 0 10px 44px;
    color: var(--event-text-muted, #66717a);
    font-size: 1rem;
    line-height: 1.7;
}

.smeds-event__program > ul {
    margin: 0;
    padding: 4px 0 10px 64px;
    color: var(--event-text-muted, #66717a);
    font-size: 1rem;
    line-height: 1.7;
}

.smeds-event__program > ul li + li {
    margin-top: 5px;
}

.smeds-event__program > h3 + p,
.smeds-event__program > h3 + ul {
    padding-top: 4px;
}

.smeds-event__program > p + h3,
.smeds-event__program > ul + h3 {
    margin-top: 10px;
}

.smeds-event__program > h3:first-of-type {
    border-top: 0;
}

.smeds-event__program > div {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(80, 144, 180, 0.28);
}

.smeds-event__program .wf_file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 64px;
    gap: 14px;
    padding: 16px 24px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: var(--smms-primary);
    box-shadow: 0 8px 18px rgba(80, 144, 180, 0.22);
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease,
        box-shadow .2s ease;
}

.smeds-event__program .wf_file::after {
    content: "Télécharger le PDF ↓";
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.smeds-event__program .wf_file_icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.smeds-event__program .wf_file_text {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    line-height: 1.2;
}

.smeds-event__program .wf_file:hover,
.smeds-event__program .wf_file:focus-visible {
    color: #ffffff;
    background: var(--smms-primary-hover, #3f7f9f);
    box-shadow: 0 14px 28px rgba(80, 144, 180, 0.3);
    transform: translateY(-2px);
}

.smeds-event__program .wf_file:focus-visible {
    outline: 3px solid var(--smms-secondary);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .smeds-event__program {
        margin-top: 30px;
        padding: 24px 20px;
        border-radius: 0 8px 8px 0;
    }

    .smeds-event__program > h2 {
        margin-bottom: 18px;
        padding: 0 0 12px;
    }

    .smeds-event__program > h3 {
        padding: 16px 0 8px;
    }

    .smeds-event__program > p {
        padding: 4px 0 9px 0;
    }

    .smeds-event__program > ul {
        padding: 4px 0 10px 22px;
    }

    .smeds-event__program > div {
        margin-top: 20px;
        padding: 20px 0 0;
    }

    .smeds-event__program .wf_file {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 15px 18px;
    }

    .smeds-event__program .wf_file::after {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 8px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.45);
        border-left: 0;
    }
}

.event-talk {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--event-border);
}

.event-time {
    font-weight: 700;
    white-space: nowrap;
}

.event-talk-content h3 {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
}

.event-talk-content h4 {
    margin: 1.25rem 0 .5rem;
}

.event-talk-content p {
    margin: .35rem 0;
}

.event-affiliation {
    display: block;
    margin-top: .1rem;
    color: var(--event-text-muted);
}

.event-talk-simple {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* =========================================================
   INTERVENANTS
   ========================================================= */

.event-speakers {
    display: grid;
    gap: .8rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.event-speakers li {
    display: flex;
    flex-direction: column;
}

.event-speakers li span {
    color: var(--event-text-muted);
}

.event-speakers-compact {
    gap: .6rem;
}

/* =========================================================
   PAUSES / REPAS
   ========================================================= */

.event-break {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    background: var(--event-soft-bg);
}

.event-break time {
    font-weight: 700;
}

.event-break div {
    display: flex;
    flex-direction: column;
}

.event-break-highlight {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* =========================================================
   ATELIERS
   ========================================================= */

.event-workshops {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.event-workshop {
    padding: 1.5rem;
    border: 1px solid var(--event-border);
    border-radius: 8px;
}

.event-workshop h3 {
    margin: 0 0 .75rem;
}

.event-workshop p:last-child {
    margin-bottom: 0;
}

/* =========================================
   GALERIE SMEDS
   1 grande image + miniatures
   ========================================= */

.smeds-gallery {
  margin: 30px 0;
}


/* =========================================
   IMAGE PRINCIPALE
   ========================================= */

.smeds-gallery__main {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 420px;

  margin-bottom: 14px;
  padding: 0;

  background: transparent;
}

.smeds-gallery__main img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 520px;

  margin: 0 auto;

  object-fit: contain;

  border-radius: 10px;

  cursor: zoom-in;
}


/* =========================================
   MINIATURES
   ========================================= */

.smeds-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  width: 100%;
}

.smeds-gallery__thumb {
  position: relative;

  display: block;

  /* 4 imagettes maximum par ligne */
  flex: 0 1 220px;
  width: 220px;
  aspect-ratio: 4 / 3;

  padding: 0;
  margin: 0;

  overflow: hidden;

  border: 2px solid transparent;
  border-radius: 8px;

  background: transparent;

  cursor: pointer;
}

.smeds-gallery__thumb img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 6px;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.smeds-gallery__thumb:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.smeds-gallery__thumb.is-active {
  border-color: #222;
}


/* TABLETTE */

@media (max-width: 991px) {

  .smeds-gallery__thumb {
    flex-basis: 190px;
    width: 190px;
  }

}


/* MOBILE */

@media (max-width: 575px) {

  .smeds-gallery__thumbs {
    gap: 8px;
  }

  .smeds-gallery__thumb {
    flex: 0 1 calc(50% - 4px);
    width: calc(50% - 4px);
  }

}


/* =========================================
   LIGHTBOX
   ========================================= */

.smeds-lightbox-popup {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.9);
}

.smeds-lightbox-popup.is-open {
  display: flex;
}

.smeds-lightbox-popup img {
  display: block;

  width: auto;
  height: auto;

  max-width: 95vw;
  max-height: 90vh;

  object-fit: contain;

  border-radius: 10px;
}


/* =========================================
   BOUTON FERMETURE
   ========================================= */

.smeds-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;

  z-index: 2;

  padding: 0;
  margin: 0;

  border: 0;

  background: transparent;
  color: #fff;

  font-size: 45px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}

.smeds-lightbox-close:hover {
  opacity: 0.7;
}


/* =========================================
   TABLETTE
   ========================================= */

@media (max-width: 991px) {

  .smeds-gallery__main {
    min-height: 340px;
  }

  .smeds-gallery__main img {
    max-height: 430px;
  }

  .smeds-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 575px) {

  .smeds-gallery {
    margin: 20px 0;
  }

  .smeds-gallery__main {
    min-height: 0;
    margin-bottom: 10px;
  }

  .smeds-gallery__main img {
    width: 100%;
    max-height: 70vh;
  }

  .smeds-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .smeds-lightbox-popup {
    padding: 15px;
  }

  .smeds-lightbox-popup img {
    max-width: 100%;
    max-height: 85vh;
  }

  .smeds-lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 40px;
  }

}

/* Palette SMMS appliquée aux articles événements. */
.smms-event .event-kicker,
.smms-event .event-section-label,
.smms-event .event-meta-label {
    color: var(--smms-primary);
}

.smms-event .event-title,
.smms-event .event-section-title,
.smms-event .event-session-heading h3,
.smms-event .event-talk-content h3,
.smms-event .event-workshop h3 {
    color: var(--smms-text);
}

.smms-event .event-intro {
    color: var(--event-text-muted);
}

.smms-event .event-meta {
    border-color: rgba(80, 144, 180, 0.3);
    background: rgba(80, 144, 180, 0.2);
    box-shadow: 0 10px 24px rgba(22, 40, 60, 0.08);
}

.smms-event .event-meta-item {
    border-top: 3px solid var(--smms-secondary);
}

.smms-event .event-section-header {
    border-bottom-color: var(--smms-secondary);
}

.smms-event .event-section-time,
.smms-event .event-time {
    color: var(--smms-primary);
}

.smms-event .event-section-time {
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--smms-header-bg-end);
}

.smms-event .event-talk {
    padding-right: 1rem;
    padding-left: 1rem;
}

.smms-event .event-break {
    border-left: 4px solid var(--smms-secondary);
    background: var(--smms-header-bg-end);
}

.smms-event .event-break time {
    color: var(--smms-primary);
}

.smms-event .event-workshop {
    border-color: rgba(80, 144, 180, 0.3);
    border-top: 4px solid var(--smms-primary);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(22, 40, 60, 0.07);
}

.smms-event .event-affiliation,
.smms-event .event-speakers li span,
.smms-event .event-moderators {
    color: var(--event-text-muted);
}

/* =========================================================
   SMMS - Événements et actualités (addon Articles SPPB)
   ========================================================= */
body.view-category #sp-main-body {
    padding: 72px 0 84px;
}

body.view-category #sp-main-body > .container {
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.com-content-category-blog.sppb-addon-articles .sppb-addon-content + .sppb-addon-content {
    margin-top: 30px;
}

.com-content-category-blog__navigation {
    margin-top: 42px;
}

.com-content-category-blog__pagination .pagination {
    justify-content: center;
}

#sp-page-builder .sppb-section:has(.sppb-addon-article-layout) {
    padding: 64px 0 80px;
}

#sp-page-builder .sppb-section:has(.sppb-addon-article-layout) > .sppb-row-container {
    width: 100%;
    max-width: min(1536px, calc(100% - 32px)) !important;
}

.smms-events-header {
    max-width: 900px;
    margin: 0 auto 48px;
    text-align: center;
}

.smms-events-header__badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: #eaf2f7 !important;
    color: #5090b4 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.smms-events-header__badge i,
.smms-events-header__badge span {
    color: #5090b4 !important;
}

.smms-events-header__badge i {
    font-size: 14px;
}

.smms-events-header__title {
    margin: 0 0 14px;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(40px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.smms-events-header__intro {
    max-width: 760px;
    margin: 0 auto;
    color: #66717a;
    font-size: 18px;
    line-height: 1.6;
}

.sppb-addon-articles > .sppb-addon-content > .sppb-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-right: 0;
    margin-left: 0;
}

.sppb-addon-articles .sppb-addon-article-layout {
    display: flex;
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.sppb-addon-articles .sppb-addon-article {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 40, 60, 0.12);
}

.sppb-addon-articles .sppb-article-img-wrap {
    display: block;
    flex: 0 0 280px;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.sppb-addon-articles .sppb-article-img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sppb-addon-articles .sppb-article-info-wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px 24px 24px;
}

.sppb-addon-articles .sppb-article-info-wrap h3 {
    order: 2;
    margin: 0 0 12px;
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.sppb-addon-articles .sppb-article-info-wrap h3 a {
    color: var(--smms-text);
}

.sppb-addon-articles .sppb-article-info-wrap h3 a:hover {
    color: var(--smms-primary);
}

.sppb-addon-articles .sppb-article-meta {
    display: none;
}

.sppb-addon-articles .fields-container {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sppb-addon-articles .field-entry {
    list-style: none;
}

.sppb-addon-articles .field-entry.lieu {
    order: 1;
    margin: 0 0 12px;
    color: var(--smms-primary);
    font-size: 14px;
    font-weight: 600;
}

.sppb-addon-articles .field-entry.lieu::before {
    content: "\f3c5";
    margin-right: 8px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.sppb-addon-articles .field-entry.date {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    margin: 0;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--smms-secondary);
    color: var(--smms-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 6px 15px rgba(22, 40, 60, 0.15);
}

.sppb-addon-articles .field-entry.intro {
    order: 3;
    margin: 0 0 18px;
    color: #66717a;
    font-size: 15px;
    line-height: 1.55;
}

.sppb-addon-articles .sppb-readmore {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    order: 4;
    gap: 9px;
    margin-top: auto;
    color: var(--smms-primary);
    font-size: 15px;
    font-weight: 700;
}

.sppb-addon-articles .sppb-readmore::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform .2s ease;
}

.sppb-addon-articles .sppb-readmore:hover {
    color: var(--smms-primary-hover);
}

.sppb-addon-articles .sppb-readmore:hover::after {
    transform: translateX(4px);
}

@media (max-width: 767.98px) {
    .sppb-addon-articles > .sppb-addon-content > .sppb-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    body.view-category #sp-main-body {
        padding: 52px 0 64px;
    }

    body.view-category #sp-main-body > .container {
        max-width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    #sp-page-builder .sppb-section:has(.sppb-addon-article-layout) {
        padding: 52px 0 64px;
    }

    .smms-events-header {
        margin-bottom: 34px;
    }

    .smms-events-header__title {
        font-size: clamp(32px, 9vw, 40px);
    }

    .smms-events-header__intro {
        font-size: 16px;
        line-height: 1.55;
    }

    #sp-page-builder .sppb-section:has(.sppb-addon-article-layout) > .sppb-row-container {
        max-width: 100% !important;
        padding-right: 20px;
        padding-left: 20px;
    }

    .sppb-addon-articles .sppb-article-img-wrap {
        flex-basis: 220px;
        height: 220px;
    }

    .sppb-addon-articles .sppb-article-info-wrap {
        padding: 20px;
    }

    .sppb-addon-articles .sppb-article-info-wrap h3 {
        font-size: 20px;
    }
}

/* ========================================================================== 
   SMEDS - Profil Community Builder
   ========================================================================== */
.cbProfile.cbProfileCanvasOther {
    position: relative;
    isolation: isolate;
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 46px);
    overflow: hidden;
    border: 1px solid #e2eaf0;
    border-top: 5px solid var(--smms-secondary);
    border-radius: 20px;
    color: var(--smms-text);
    background: radial-gradient(circle at 100% 0, rgba(80, 144, 180, 0.13), transparent 34%), #ffffff;
    box-shadow: 0 22px 60px rgba(35, 63, 82, 0.12);
}

.cbProfile.cbProfileCanvasOther::before {
    position: absolute;
    z-index: -1;
    top: -74px;
    right: -62px;
    width: 190px;
    height: 190px;
    border: 26px solid rgba(255, 216, 51, 0.17);
    border-radius: 50%;
    content: "";
}

.cbProfile .cbPosCanvasMenu {
    position: absolute;
    z-index: 3;
    top: clamp(26px, 4vw, 46px);
    right: clamp(22px, 4vw, 46px);
}

.cbProfile .cbPosCanvasMenu .cbNavBar {
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

.cbProfile .cbPosCanvasMenu .cbNavBarLink {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 10px 17px !important;
    border: 1px solid rgba(80, 144, 180, 0.28);
    border-radius: 999px;
    color: var(--smms-primary) !important;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 7px 18px rgba(35, 63, 82, 0.08);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cbProfile .cbPosCanvasMenu .cbNavBarLink:hover,
.cbProfile .cbPosCanvasMenu .cbNavBarLink:focus {
    border-color: var(--smms-primary);
    color: #ffffff !important;
    background: var(--smms-primary);
    transform: translateY(-1px);
}

.cbProfile .cbPosCanvasMenu .dropdown-menu {
    min-width: 245px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #dfe8ee;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(35, 63, 82, 0.15);
}

.cbProfile .cbPosCanvasMenu .dropdown-item {
    padding: 11px 13px;
    border-radius: 8px;
    color: var(--smms-text);
    font-weight: 600;
}

.cbProfile .cbPosCanvasMenu .dropdown-item:hover,
.cbProfile .cbPosCanvasMenu .dropdown-item:focus {
    color: var(--smms-primary-hover);
    background: #edf5f9;
}

.cbProfile .cbPosCanvas {
    overflow: visible !important;
    border: 0 !important;
}

.cbProfile .cbPosCanvasBottom {
    position: relative;
    display: block;
    margin: 0 0 30px;
    padding: 0 190px 26px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e3ebf0 !important;
    background: transparent !important;
}

.cbProfile .cbPosCanvasBottom::before {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--smms-primary), var(--smms-primary-hover));
    content: "\f2bd";
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-size: 27px;
    font-weight: 900;
    box-shadow: 0 11px 24px rgba(80, 144, 180, 0.28);
}

.cbProfile .cbProfileTitle {
    margin: 0 !important;
    border: 0 !important;
}

.cbProfile .cbProfileTitle::before {
    display: block;
    margin-bottom: 5px;
    color: var(--smms-primary);
    content: "ESPACE MEMBRE";
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.cbProfile .cbProfileTitle .cb-page-header-title {
    overflow-wrap: anywhere;
    color: #243746;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.18;
}

.cbProfile .cbTabsMenu > .cbNavBar {
    margin: 0 0 19px !important;
    padding: 0;
    border: 0 !important;
    border-bottom: 1px solid #dfe8ee !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.cbProfile .cbTabsNav .cbTabNavLink {
    position: relative;
    padding: 0 2px 13px !important;
    color: #607483 !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 700;
}

.cbProfile .cbTabsNav .cbTabNavLink::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--smms-secondary);
    content: "";
}

.cbProfile .cbTabsMenuMain {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
    gap: clamp(22px, 4vw, 42px);
}

.cbProfile .cbTabsMenuMain > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0 !important;
}

.cbProfile .cbFieldsContentsTab .cb_form_line {
    display: grid;
    grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 0;
    padding: 17px 18px;
    border-bottom: 1px solid #e8eef2;
    background: transparent;
}

.cbProfile .cbFieldsContentsTab .cb_form_line:nth-child(odd) {
    background: #f7fafc;
}

.cbProfile .cbFieldsContentsTab .cb_form_line:first-child {
    border-radius: 12px 12px 0 0;
}

.cbProfile .cbFieldsContentsTab .cb_form_line:last-child {
    border-bottom: 0;
    border-radius: 0 0 12px 12px;
}

.cbProfile .cbFieldsContentsTab .col-form-label,
.cbProfile .cbFieldsContentsTab .cb_field {
    width: auto;
    max-width: none;
    padding: 0 !important;
}

.cbProfile .cbFieldsContentsTab .col-form-label {
    color: #69808f;
    font-size: 13px;
    font-weight: 700;
}

.cbProfile .cbFieldsContentsTab .form-control-plaintext,
.cbProfile .cbFieldsContentsTab .cb_field {
    overflow-wrap: anywhere;
    color: #243746;
    font-size: 15px;
    font-weight: 700;
}

.cbProfile .cbTabsMenuRight .cbFieldsContentsTab {
    overflow: hidden;
    border: 1px solid #dfe9ef;
    border-radius: 14px;
    background: #f7fafc;
}

.cbProfile .cbTabsMenuRight .cb_form_line,
.cbProfile .cbTabsMenuRight .cb_form_line:nth-child(odd) {
    display: block;
    padding: 16px 17px;
    text-align: left;
    background: transparent;
}

.cbProfile .cbTabsMenuRight .cb_form_line::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    background: var(--smms-secondary);
    content: "";
}

.cbProfile .cbTabsMenuRight .col-form-label {
    display: inline;
    color: #607483;
}

.cbProfile .cbTabsMenuRight .cb_field {
    display: block;
    margin-top: 5px;
    padding-left: 15px !important;
    color: var(--smms-primary-hover);
    font-size: 13px;
    font-weight: 700;
}

@media (min-width: 576px) {
    .cb_template .cbCanvasLayout .cbCanvasLayoutBottom.row > div:first-child {
        display: flex;
        max-height: 72px;
        max-width: 100%;
        width: auto;
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .cbProfile.cbProfileCanvasOther {
        padding: 24px 19px 26px;
        border-radius: 15px;
    }

    .cbProfile .cbPosCanvasMenu {
        position: static;
        margin-bottom: 21px;
    }

    .cbProfile .cbPosCanvasMenu .cbNavBarLink {
        min-height: 42px;
    }

    .cbProfile .cbPosCanvasBottom {
        margin-bottom: 25px;
        padding: 0 0 22px !important;
    }

    .cbProfile .cbPosCanvasBottom::before {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 24px;
    }

    .cbProfile .cbTabsMenuMain {
        grid-template-columns: minmax(0, 1fr);
    }

    .cbProfile .cbFieldsContentsTab .cb_form_line {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 14px 15px;
    }

    .cbProfile .cbTabsMenuRight .cb_form_line,
    .cbProfile .cbTabsMenuRight .cb_form_line:nth-child(odd) {
        display: block;
    }
}

/* ========================================================================== 
   SMMS - Prochain congrès (SP Page Builder)
   ========================================================================== */
.smms-congress {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-right: -50vw;
    margin-left: -50vw;
    padding: 88px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #b8d0e0 0%, #eaf2f7 100%);
}

.smms-congress__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
}

.smms-congress__decoration {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(65px);
    pointer-events: none;
}

.smms-congress__decoration--yellow {
    top: -130px;
    right: -100px;
    width: 420px;
    height: 420px;
    background: rgba(255, 216, 51, 0.2);
}

.smms-congress__decoration--blue {
    bottom: -120px;
    left: -80px;
    width: 360px;
    height: 360px;
    background: rgba(80, 144, 180, 0.2);
}

.smms-congress__header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.smms-congress__eyebrow,
.smms-congress__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.smms-congress__eyebrow {
    margin-bottom: 16px;
    background: #ffffff;
    color: var(--smms-primary);
    box-shadow: 0 8px 20px rgba(22, 40, 60, 0.1);
}

.smms-congress__section-title {
    margin: 0;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.15;
}

.smms-congress__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 72px;
}

.smms-congress__content,
.smms-congress__visual {
    min-width: 0;
}

.smms-congress__date {
    margin-bottom: 22px;
    background: var(--smms-secondary);
    color: var(--smms-text);
    text-transform: uppercase;
}

.smms-congress__title {
    margin: 0 0 20px;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(44px, 4vw, 62px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.smms-congress__location {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    color: var(--smms-primary);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.1;
}

.smms-congress__location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--smms-primary);
    color: #ffffff;
    font-size: 20px;
}

.smms-congress__message {
    margin: 0 0 30px;
    padding: 24px 26px;
    border-left: 5px solid var(--smms-primary);
    border-radius: 0 12px 12px 0;
    background: #ffffff;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 12px 28px rgba(22, 40, 60, 0.12);
}

.smms-congress__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.smms-congress__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 13px 26px;
    border: 2px solid var(--smms-primary);
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease,
        transform 0.25s ease, box-shadow 0.25s ease;
}

.smms-congress__button--primary {
    background: var(--smms-primary);
    color: #ffffff !important;
    box-shadow: 0 12px 25px rgba(80, 144, 180, 0.24);
}

.smms-congress__button--secondary {
    background: #ffffff;
    color: var(--smms-primary) !important;
}

.smms-congress__button:hover,
.smms-congress__button:focus {
    border-color: var(--smms-primary-hover);
    background: var(--smms-primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 28px rgba(64, 112, 145, 0.25);
}

.smms-congress__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    color: #5e6a73;
    font-size: 14px;
    line-height: 1.45;
}

.smms-congress__visual {
    position: relative;
}

.smms-congress__image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(22, 40, 60, 0.22);
}

.smms-congress__image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 480px;
    object-fit: cover;
}

.smms-congress__calendar {
    position: absolute;
    top: 22px;
    right: 22px;
    min-width: 100px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
    box-shadow: 0 12px 25px rgba(22, 40, 60, 0.2);
    backdrop-filter: blur(5px);
}

.smms-congress__calendar-day,
.smms-congress__calendar-month,
.smms-congress__calendar-year {
    display: block;
}

.smms-congress__calendar-day {
    color: var(--smms-primary);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.smms-congress__calendar-month {
    margin: 3px 0;
    color: #6c757d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.smms-congress__calendar-year {
    color: var(--smms-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.smms-congress__major {
    position: absolute;
    bottom: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    border-radius: 7px;
    background: var(--smms-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(22, 40, 60, 0.22);
}

@media (max-width: 1199.98px) {
    .smms-congress {
        padding: 72px 0;
    }

    .smms-congress__grid {
        gap: 42px;
    }

    .smms-congress__image {
        min-height: 420px;
    }
}

@media (max-width: 767.98px) {
    .smms-congress {
        padding: 56px 0;
    }

    .smms-congress__container {
        max-width: 100%;
        padding: 0 20px;
    }

    .smms-congress__header {
        margin-bottom: 34px;
    }

    .smms-congress__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .smms-congress__visual {
        grid-row: 1;
    }

    .smms-congress__content {
        grid-row: 2;
    }

    .smms-congress__title {
        font-size: clamp(38px, 12vw, 50px);
    }

    .smms-congress__message {
        padding: 20px;
    }

    .smms-congress__actions {
        flex-direction: column;
    }

    .smms-congress__button {
        width: 100%;
    }

    .smms-congress__image {
        min-height: 320px;
    }

    .smms-congress__calendar {
        top: 14px;
        right: 14px;
        min-width: 84px;
        padding: 10px 12px;
    }

    .smms-congress__calendar-day {
        font-size: 32px;
    }

    .smms-congress__major {
        bottom: 14px;
        left: 14px;
    }
}

/* Lignes pleine largeur utilisées par les sections SMMS dans SP Page Builder. */
.sppb-row-container:has(.smms-hero),
.sppb-row-container:has(.smms-about),
.sppb-row-container:has(.smms-congress),
.smms-fullwidth-row .sppb-row-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* ========================================================================== 
   SMMS - Section À propos (SP Page Builder)
   ========================================================================== */
.smms-about {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-right: -50vw;
    margin-left: -50vw;
    padding: 60px 0 40px;
    overflow: hidden;
    background: #ffffff;
}

.smms-about__container {
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
}

.smms-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

.smms-about__content {
    min-width: 0;
}

.smms-about__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--smms-header-bg-end);
    color: var(--smms-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.smms-about__title {
    margin: 0 0 24px;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    max-width: 680px;
    font-size: clamp(42px, 3.2vw, 50px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.smms-about__description {
    margin-bottom: 32px;
    color: #6c757d;
    max-width: 690px;
    font-size: 18px;
    line-height: 1.7;
}

.smms-about__description p {
    margin: 0;
}

.smms-about__description p + p {
    margin-top: 16px;
}

.smms-about__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.smms-about__feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.smms-about__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--smms-header-bg-end);
    color: var(--smms-primary);
    font-size: 20px;
}

.smms-about__feature h3 {
    margin: 0 0 6px;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.smms-about__feature p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.55;
}

.smms-about__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.smms-about__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 14px 32px;
    border: 1px solid var(--smms-primary);
    border-radius: 4px;
    background: var(--smms-primary);
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(80, 144, 180, 0.22);
    transition: background-color 0.25s ease, border-color 0.25s ease,
        transform 0.25s ease, box-shadow 0.25s ease;
}

.smms-about__button:hover,
.smms-about__button:focus {
    border-color: var(--smms-primary-hover);
    background: var(--smms-primary-hover);
    color: #ffffff !important;
    box-shadow: 0 15px 28px rgba(64, 112, 145, 0.26);
    transform: translateY(-2px);
}

.smms-about__note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.45;
}

.smms-about__note i {
    color: var(--smms-primary);
}

.smms-about__visual {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 0;
}

.smms-about__image-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 16px;
    background: var(--smms-header-bg-end);
    box-shadow: 0 22px 45px rgba(22, 40, 60, 0.16);
}

.smms-about__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 0;
    object-fit: cover;
}

.smms-about__decoration {
    display: none;
}

.smms-about__decoration--yellow {
    right: -34px;
    bottom: -34px;
    width: 190px;
    height: 190px;
    background: rgba(255, 216, 51, 0.34);
}

.smms-about__decoration--blue {
    top: -26px;
    left: -26px;
    width: 160px;
    height: 160px;
    background: rgba(80, 144, 180, 0.3);
}

@media (max-width: 1199.98px) {
    .smms-about {
        padding: 70px 0 50px;
    }

    .smms-about__grid {
        gap: 42px;
    }

    .smms-about__features {
        grid-template-columns: 1fr;
    }

    .smms-about__image {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .smms-about {
        padding: 56px 0 44px;
        border-top: 3px solid var(--smms-secondary);
        box-shadow: 0 -8px 20px rgba(22, 40, 60, 0.08);
    }

    .smms-about__container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .smms-about__grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .smms-about__title {
        font-size: clamp(32px, 9vw, 40px);
    }

    .smms-about__description {
        font-size: 17px;
        line-height: 1.65;
    }

    .smms-about__features {
        gap: 14px;
    }

    .smms-about__button {
        width: 100%;
    }

    .smms-about__visual {
        padding: 8px;
    }

    .smms-about__image {
        min-height: 320px;
    }
}

/* ========================================================================== 
   SMMS - Hero de la page d'accueil (SP Page Builder)
   ========================================================================== */
.smms-hero {
    position: relative;
    left: 50%;
    display: flex;
    align-items: center;
    width: 100vw;
    max-width: none;
    min-height: 700px;
    margin-right: -50vw;
    margin-left: -50vw;
    overflow: hidden;
    color: #ffffff;
}

.smms-hero__media,
.smms-hero__overlay {
    position: absolute;
    inset: 0;
}

.smms-hero__media {
    z-index: 0;
}

.smms-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.smms-hero__overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 49, 72, 0.96) 0%,
        rgba(0, 55, 79, 0.92) 32%,
        rgba(0, 58, 82, 0.78) 52%,
        rgba(0, 52, 74, 0.38) 72%,
        rgba(0, 45, 65, 0.08) 100%
    );
}

.smms-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 100px 0;
}

.smms-hero__content {
    max-width: 780px;
}

.smms-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    padding: 9px 16px;
    border-radius: 5px;
    background: rgba(80, 144, 180, 0.92);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(4px);
}

.smms-hero__title {
    max-width: 760px;
    margin: 0 0 24px;
    color: #ffffff;
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(48px, 4vw, 60px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.smms-hero__intro {
    max-width: 700px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    line-height: 1.65;
}

.smms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.smms-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    transition: background-color 0.25s ease, border-color 0.25s ease,
        color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.smms-hero__button:hover,
.smms-hero__button:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.smms-hero__button--primary {
    border-color: var(--smms-secondary);
    background: var(--smms-secondary);
    color: var(--smms-text);
}

.smms-hero__button--primary:hover,
.smms-hero__button--primary:focus {
    border-color: #e6c12f;
    background: #e6c12f;
    color: var(--smms-text);
}

.smms-hero__button--secondary {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--smms-primary);
}

.smms-hero__button--secondary:hover,
.smms-hero__button--secondary:focus {
    border-color: var(--smms-header-bg-end);
    background: var(--smms-header-bg-end);
    color: var(--smms-primary-hover);
}

.smms-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin-top: 44px;
}

.smms-hero__highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.4;
}

.smms-hero__highlight i {
    color: var(--smms-secondary);
    font-size: 23px;
}

@media (max-width: 1199.98px) {
    .smms-hero {
        min-height: 640px;
    }

    .smms-hero__container {
        padding-top: 72px;
    }

    .smms-hero__content {
        max-width: 680px;
    }

    .smms-hero__title {
        font-size: clamp(42px, 5vw, 52px);
    }
}

@media (max-width: 767.98px) {
    .smms-hero {
        align-items: flex-start;
        min-height: 650px;
    }

    .smms-hero__image {
        object-position: 62% center;
    }

    .smms-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(36, 36, 36, 0.94) 0%,
            rgba(36, 36, 36, 0.82) 72%,
            rgba(36, 36, 36, 0.58) 100%
        );
    }

    .smms-hero__container {
        max-width: 100%;
        padding: 60px 20px;
    }

    .smms-hero__badge {
        margin-bottom: 20px;
    }

    .smms-hero__title {
        margin-bottom: 20px;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.12;
    }

    .smms-hero__intro {
        margin-bottom: 26px;
        font-size: 17px;
        line-height: 1.55;
    }

    .smms-hero__actions {
        flex-direction: column;
    }

    .smms-hero__button {
        width: 100%;
        min-height: 52px;
        padding: 11px 18px;
        font-size: 16px;
    }

    .smms-hero__highlights {
        gap: 14px;
        margin-top: 30px;
    }

    .smms-hero__highlight {
        width: 100%;
    }

}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
#sp-header {
    height: var(--smms-header-height);
    background: linear-gradient(
        180deg,
        var(--smms-header-bg-start) 0%,
        var(--smms-header-bg-end) 100%
    );
    border-bottom: 2px solid var(--smms-header-border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

#sp-header > .container,
#sp-header .container-inner,
#sp-header .row {
    height: 100%;
}

#sp-header > .container {
    width: 100%;
}

/* Container Bootstrap fluide sur desktop, plafonné comme la maquette. */
@media (min-width: 1200px) {
    #sp-header > .container {
        max-width: min(1536px, calc(100% - 32px));
    }
}

#sp-header .row {
    align-items: center;
}

/* Helix sticky */
body.sticky-header #sp-header.header-sticky,
#sp-header.header-sticky {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--smms-header-border);
    box-shadow: 0 8px 22px rgba(22, 40, 60, 0.12);
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
#sp-logo {
    position: relative;
    height: 100%;
    z-index: 1000;
    transition: flex-basis 0.3s ease, width 0.3s ease;
}

#sp-logo .sp-column,
#sp-logo .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

#sp-logo .logo a {
    display: flex;
    align-items: center;
    transition: top 0.3s ease;
}

#sp-logo .logo-image,
#sp-logo .logo-image-phone {
    width: auto;
    max-width: none;
    height: 150px !important;
    max-height: none;
    object-fit: contain;
    transition: height 0.3s ease, transform 0.3s ease;
}

@media (min-width: 992px) {
    #sp-logo {
        flex: 0 0 220px;
        width: 220px;
    }

    #sp-logo .logo a {
        position: absolute;
        top: -8px;
        left: 0;
    }

    #sp-logo .logo-image {
        transform: none;
    }

    #sp-logo .logo a:hover .logo-image {
        transform: scale(1.05);
    }

}

/* --------------------------------------------------------------------------
   Zone menu
   -------------------------------------------------------------------------- */
#sp-menu,
#sp-menu > .sp-column {
    height: 100%;
}

#sp-menu > .sp-column {
    gap: 18px;
}

/* Menu desktop */
.sp-megamenu-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.sp-megamenu-parent {
    display: flex !important;
    align-items: center;
    height: 100%;
    margin: 0;
}

.sp-megamenu-parent > li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    color: var(--smms-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.2s ease;
}

#sp-header .sp-megamenu-parent > li.sp-has-child > .sp-menu-separator {
    cursor: pointer;
}

/* Chevron indépendant du soulignement et de la police d'icônes Helix. */
#sp-header .sp-megamenu-parent > li.sp-has-child > a::before,
#sp-header .sp-megamenu-parent > li.sp-has-child > span::before {
    content: "";
    display: block;
    order: 1;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-left: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

/* Neutraliser l'icône Helix pour réserver ::after au soulignement. */
#sp-header .sp-megamenu-parent > li.sp-has-child > a::after,
#sp-header .sp-megamenu-parent > li.sp-has-child > span::after {
    content: "";
    float: none;
    margin-left: 0;
}

/* Soulignement jaune au hover / actif */
.sp-megamenu-parent > li > a::after,
.sp-megamenu-parent > li > span::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 25px;
    height: 3px;
    background: var(--smms-header-border);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:hover > span {
    color: var(--smms-text-hover);
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active > span,
.sp-megamenu-parent > li.current-item > a,
.sp-megamenu-parent > li.current-item > span {
    color: var(--smms-text);
    font-weight: 600;
}

.sp-megamenu-parent > li:hover > a::after,
.sp-megamenu-parent > li:hover > span::after,
.sp-megamenu-parent > li.active > a::after,
.sp-megamenu-parent > li.active > span::after,
.sp-megamenu-parent > li.current-item > a::after {
    transform: scaleX(1);
}

/* Dropdown */
#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    padding: 10px;
    border: 1px solid var(--smms-login-border);
    border-top: 3px solid var(--smms-header-border);
    border-radius: 0 0 14px 14px;
    background: linear-gradient(145deg, #ffffff, var(--smms-header-bg-end));
    box-shadow: 0 16px 32px rgba(22, 40, 60, 0.16);
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    display: flex;
    align-items: center;
    min-height: 46px;
    margin: 3px 0;
    padding: 12px 14px;
    border-left: 3px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--smms-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus-visible,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
    border-left-color: var(--smms-header-border);
    background: var(--smms-login-hover-bg);
    color: var(--smms-primary);
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus-visible {
    outline: 2px solid var(--smms-primary);
    outline-offset: -2px;
}

/* --------------------------------------------------------------------------
   Actions du header
   -------------------------------------------------------------------------- */
.header-actions {
    height: 100%;
    align-items: center;
    gap: 18px;
    margin-left: 14px;
    white-space: nowrap;
}

/* CTA d'adhésion dynamique */
.header-join {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.btn-adhesion {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    gap: 8px;
    padding: 0 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    clip-path: none;
    color: #2d2d2d !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

.btn-adhesion::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 6px;
    background: #ffd833;
    box-shadow: 0 6px 14px rgba(45, 45, 45, 0.18);
    content: "";
    transform: skewX(-20deg);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-adhesion i,
.btn-adhesion span {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    transform: translateY(1px);
}

.btn-adhesion:hover,
.btn-adhesion:focus {
    background: transparent;
    color: #2d2d2d !important;
    box-shadow: none;
}

.btn-adhesion:hover::before,
.btn-adhesion:focus::before {
    background: #ffe064;
    box-shadow: 0 8px 17px rgba(45, 45, 45, 0.22);
}

.btn-adhesion .btn-adhesion__mobile {
    display: none;
}

/* Login invité */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--smms-login-border);
    border-radius: 14px;
    background: var(--smms-login-bg);
    color: var(--smms-text);
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.header-login-btn:hover,
.header-login-btn:focus {
    background: var(--smms-login-hover-bg);
    border-color: var(--smms-primary);
    color: var(--smms-primary);
}

.header-login-btn i {
    font-size: 17px;
}

.header-login-label {
    display: none;
}

/* En-tête de l'offcanvas de connexion. */
#offcanvasLogin .offcanvas-header {
    min-height: 84px;
    padding: 18px 20px;
    border-bottom: 2px solid var(--smms-header-border);
    background: linear-gradient(90deg, #ffffff, var(--smms-header-bg-end));
}

#offcanvasLogin .offcanvas-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--smms-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
}

#offcanvasLogin .offcanvas-title::before {
    content: "";
    display: block;
    width: 5px;
    height: 30px;
    border-radius: 5px;
    background: var(--smms-header-border);
}

#offcanvasLogin .offcanvas-header .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--smms-login-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--smms-text);
    box-shadow: 0 3px 10px rgba(22, 40, 60, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, transform 0.2s ease;
}

#offcanvasLogin .offcanvas-header .btn-icon i {
    font-size: 19px;
    line-height: 1;
}

#offcanvasLogin .offcanvas-header .btn-icon:hover {
    border-color: var(--smms-primary);
    background: var(--smms-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

#offcanvasLogin .offcanvas-header .btn-icon:focus-visible {
    outline: 3px solid rgba(80, 144, 180, 0.28);
    outline-offset: 3px;
}

#offcanvasLogin .offcanvas-body a:not(.btn) {
    color: var(--smms-primary);
}

#offcanvasLogin .offcanvas-body a:not(.btn):hover,
#offcanvasLogin .offcanvas-body a:not(.btn):focus {
    color: var(--smms-primary-hover);
}

#offcanvasLogin .btn-primary {
    border-color: var(--smms-primary);
    background: var(--smms-primary);
    color: #ffffff;
}

#offcanvasLogin .btn-primary:hover,
#offcanvasLogin .btn-primary:focus {
    border-color: var(--smms-primary-hover);
    background: var(--smms-primary-hover);
    color: #ffffff;
}

#offcanvasLogin .btn-secondary {
    border-color: var(--smms-primary);
    background: #ffffff;
    color: var(--smms-primary);
}

#offcanvasLogin .btn-secondary:hover,
#offcanvasLogin .btn-secondary:focus {
    border-color: var(--smms-primary);
    background: var(--smms-header-bg-end);
    color: var(--smms-primary-hover);
}

#offcanvasLogin .input-password-toggle {
    border-color: var(--smms-primary);
    background: var(--smms-primary);
    color: #ffffff;
}

#offcanvasLogin .form-control:focus,
#offcanvasLogin .form-check-input:focus {
    border-color: var(--smms-primary);
    box-shadow: 0 0 0 0.2rem rgba(80, 144, 180, 0.2);
}

#offcanvasLogin .form-check-input:checked {
    border-color: var(--smms-primary);
    background-color: var(--smms-primary);
}

/* Espace membre lorsque l'utilisateur est connecté. */
#offcanvasLogin:has(.offcanvas-logout) {
    width: min(420px, 100%);
    border-left: 0;
    background: #f7fafc;
    box-shadow: -14px 0 38px rgba(22, 40, 60, 0.16);
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-header {
    min-height: 96px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(80, 144, 180, 0.18);
    background: #ffffff;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-title {
    gap: 13px;
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-title::before {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: var(--smms-primary);
    content: "\f2bd";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(80, 144, 180, 0.24);
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 0 !important;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 216, 51, 0.13), transparent 180px),
        #f7fafc;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body::before {
    order: 0;
    margin: 26px 24px 14px;
    color: #607482;
    content: "Retrouvez vos informations et les contenus réservés aux membres de la SMEDS.";
    font-size: 14px;
    line-height: 1.65;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu {
    order: 1;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 8px 20px 24px;
    list-style: none;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li > a {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 13px;
    padding: 12px 16px;
    border: 1px solid rgba(80, 144, 180, 0.16);
    border-radius: 10px;
    color: var(--smms-text);
    background: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(22, 40, 60, 0.06);
    transition: border-color 0.2s ease, color 0.2s ease,
        background-color 0.2s ease, transform 0.2s ease;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li > a::before {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    color: var(--smms-primary);
    background: rgba(80, 144, 180, 0.12);
    content: "\f0c0";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 14px;
    font-weight: 900;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > .item-137 > a::before {
    content: "\f007";
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li > a::after {
    margin-left: auto;
    color: #91a5b2;
    content: "\f054";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 11px;
    font-weight: 900;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li > a:hover,
#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li > a:focus {
    border-color: var(--smms-primary);
    color: var(--smms-primary-hover);
    background: #ffffff;
    transform: translateX(-3px);
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li.current > a,
#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li.active > a {
    border-color: rgba(80, 144, 180, 0.28);
    color: #ffffff;
    background: var(--smms-primary);
    box-shadow: 0 9px 22px rgba(80, 144, 180, 0.24);
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li.current > a::before,
#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li.active > a::before {
    color: var(--smms-text);
    background: var(--smms-secondary);
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li.current > a::after,
#offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu > li.active > a::after {
    color: rgba(255, 255, 255, 0.78);
}

#offcanvasLogin:has(.offcanvas-logout) #offcanvasLoginForm {
    order: 2;
    margin-top: auto;
    padding: 20px 24px 24px !important;
    border-top: 1px solid rgba(80, 144, 180, 0.16);
    background: #ffffff;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-logout .btn {
    min-height: 50px;
    border: 1px solid #d8a3a8;
    border-radius: 9px;
    color: #9c303a;
    background: #fff7f7;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-logout .btn::before {
    margin-right: 9px;
    content: "\f2f5";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
}

#offcanvasLogin:has(.offcanvas-logout) .offcanvas-logout .btn:hover,
#offcanvasLogin:has(.offcanvas-logout) .offcanvas-logout .btn:focus {
    border-color: #a93640;
    color: #ffffff;
    background: #a93640;
}

@media (max-width: 575.98px) {
    #offcanvasLogin:has(.offcanvas-logout) .offcanvas-body::before {
        margin: 22px 18px 12px;
    }

    #offcanvasLogin:has(.offcanvas-logout) .offcanvas-body > .mod-menu {
        padding-right: 14px;
        padding-left: 14px;
    }

    #offcanvasLogin:has(.offcanvas-logout) #offcanvasLoginForm {
        padding: 17px 18px 18px !important;
    }
}

/* Utilisateur connecté */
.header-account-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--smms-login-border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--smms-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.header-account-link:hover,
.header-account-link:focus {
    background: var(--smms-login-hover-bg);
    border-color: var(--smms-primary);
    color: var(--smms-primary);
}

/* --------------------------------------------------------------------------
   Hamburger / offcanvas
   -------------------------------------------------------------------------- */
.offcanvas-menu {
    background: #ffffff !important;
    color: var(--smms-text) !important;
}

.offcanvas-menu .logo-image,
.offcanvas-menu .logo-image-phone {
    width: auto;
    height: 88px;
    max-width: 150px;
    object-fit: contain;
}

.offcanvas-menu .close-offcanvas {
    color: var(--smms-text) !important;
}

.offcanvas-menu .close-offcanvas .burger-icon > span {
    background: var(--smms-text) !important;
}

.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span,
.offcanvas-menu .offcanvas-inner ul.menu > li > .nav-header {
    border-radius: 8px;
    color: var(--smms-text) !important;
    font-size: 18px;
    font-weight: 600;
}

.offcanvas-menu .offcanvas-inner ul.menu > li > a:hover,
.offcanvas-menu .offcanvas-inner ul.menu > li > a:focus,
.offcanvas-menu .offcanvas-inner ul.menu > li.active > a,
.offcanvas-menu .offcanvas-inner ul.menu > li.current > a {
    background: var(--smms-header-bg-end);
    color: var(--smms-primary) !important;
}

#offcanvas-toggler {
    width: 48px;
    height: 48px;
    justify-content: center;
    margin-left: 16px;
    border-radius: 8px;
    background: var(--smms-header-bg-end);
    color: var(--smms-primary);
    text-decoration: none;
}

#offcanvas-toggler .burger-icon {
    width: 28px;
    height: 22px;
}

#offcanvas-toggler .burger-icon > span {
    display: block;
    width: 100%;
    height: 2px;
    margin-bottom: 6px;
    border-radius: 2px;
    background: currentColor;
}

#offcanvas-toggler .burger-icon > span:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1450px) {
    #sp-logo {
        flex: 0 0 clamp(150px, calc(35vw - 270px), 220px);
        width: clamp(150px, calc(35vw - 270px), 220px);
    }

    #sp-logo .logo-image {
        height: clamp(98px, calc(20.8vw - 151.6px), 150px) !important;
    }

    #sp-logo .logo a {
        top: max(-8px, calc((100% - clamp(98px, calc(20.8vw - 151.6px), 150px)) / 2));
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    #sp-header .row {
        flex-wrap: nowrap;
    }

    #sp-menu {
        min-width: 0;
    }

    #sp-menu > .sp-column {
        gap: 24px;
    }

    .sp-megamenu-parent > li > a,
    .sp-megamenu-parent > li > span {
        padding-left: clamp(6px, calc(2vw - 18px), 10px);
        padding-right: clamp(6px, calc(2vw - 18px), 10px);
        font-size: 19px;
        white-space: nowrap;
    }

    .header-actions {
        flex-shrink: 0;
        gap: 10px;
        margin-left: 8px;
    }

    .header-join {
        margin-right: 4px;
    }

    .btn-adhesion {
        min-height: 48px;
        padding-left: clamp(16px, calc(8vw - 80px), 32px);
        padding-right: clamp(16px, calc(8vw - 80px), 32px);
        font-size: 13px;
    }

    .header-login-btn {
        width: 48px;
        height: 48px;
    }

    .sp-megamenu-parent > li > a::after,
    .sp-megamenu-parent > li > span::after {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 1199.98px) {
    .sp-megamenu-wrapper,
    .sp-megamenu-parent {
        display: none !important;
    }

    #offcanvas-toggler {
        display: flex !important;
    }

    .btn-adhesion {
        min-height: 48px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .header-login-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --smms-header-height: 78px;
    }

    #sp-header {
        border-bottom-width: 2px;
    }

    #sp-logo .logo-image,
    #sp-logo .logo-image-phone {
        max-width: 138px;
        max-height: 68px;
        transform: none;
    }

    #sp-menu > .sp-column {
        gap: 0;
    }

    #offcanvas-toggler {
        margin-left: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #sp-logo .logo-image,
    #sp-logo .logo-image-phone {
        height: 65px !important;
        max-height: 65px;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    :root {
        --smms-header-height: 72px;
    }

    #sp-header .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    #sp-logo .logo-image,
    #sp-logo .logo-image-phone {
        max-width: 190px;
        max-height: 100px;
    }

    .header-actions {
        gap: 12px;
        margin-left: 4px;
    }

    .btn-adhesion {
        min-height: 44px;
        gap: 5px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .header-login-btn {
        width: 44px;
        height: 44px;
    }

    #offcanvas-toggler .burger-icon {
        width: 26px;
    }

    #offcanvas-toggler {
        width: 44px;
        height: 44px;
        margin-left: 7px;
    }
}

/* Actions mobiles persistantes : hors du flux visuel du header. */
@media (max-width: 767.98px) {
    .offcanvas-menu {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    body.ltr.offcanvs-position-right .offcanvas-menu {
        right: -100vw;
    }

    body.ltr.offcanvs-position-right.offcanvas-active .offcanvas-menu {
        right: 0;
    }

    body.ltr.offcanvs-position-left .offcanvas-menu {
        left: -100vw;
    }

    body.ltr.offcanvs-position-left.offcanvas-active .offcanvas-menu {
        left: 0;
    }

    .offcanvas-menu .offcanvas-inner,
    .offcanvas-menu .offcanvas-inner .mod-menu,
    .offcanvas-menu .offcanvas-inner ul.menu,
    .offcanvas-menu .offcanvas-inner ul.menu > li {
        width: 100%;
    }

    .offcanvas-menu .offcanvas-inner ul.menu > li > a,
    .offcanvas-menu .offcanvas-inner ul.menu > li > span,
    .offcanvas-menu .offcanvas-inner ul.menu > li > .nav-header {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 10px 14px;
        line-height: 1.35;
    }

    #sp-header.header-sticky {
        animation: none !important;
        transform: none !important;
    }

    body {
        padding-bottom: calc(62px + env(safe-area-inset-bottom));
    }

    .header-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        height: auto;
        gap: 10px;
        min-height: calc(62px + env(safe-area-inset-bottom));
        margin: 0;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        border-top: 2px solid var(--smms-header-border);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -6px 18px rgba(22, 40, 60, 0.12);
    }

    .header-actions .btn-adhesion,
    #sp-header.header-sticky .header-actions .btn-adhesion {
        width: 100%;
        max-width: none;
        min-height: 44px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .header-actions .header-login-btn,
    #sp-header.header-sticky .header-actions .header-login-btn {
        width: 100%;
        height: 44px;
        gap: 8px;
        font-family: "Open Sans", Arial, sans-serif;
        font-size: 14px;
        font-weight: 700;
    }

    .header-actions .header-login-label {
        display: inline;
    }

    .header-actions .header-account-link,
    #sp-header.header-sticky .header-actions .header-account-link {
        min-height: 44px;
    }

    .header-join {
        width: 100%;
    }

    .header-actions .btn-adhesion,
    #sp-header.header-sticky .header-actions .btn-adhesion {
        clip-path: none;
        border-radius: 4px;
    }

    .header-actions .btn-adhesion::before,
    #sp-header.header-sticky .header-actions .btn-adhesion::before {
        transform: none;
    }

    .btn-adhesion .btn-adhesion__desktop {
        display: none;
    }

    .btn-adhesion .btn-adhesion__mobile {
        display: inline-flex;
    }

    .header-actions .btn-adhesion > * {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Forme oblique commune aux boutons d'action textuels
   Le fond seul est incliné : le texte et les icônes restent parfaitement nets.
   -------------------------------------------------------------------------- */
.smms-hero__button,
.smms-about__button,
.smms-congress__button,
.smms-join__button {
    position: relative;
    isolation: isolate;
    border-color: transparent !important;
    border-radius: 6px;
    background: transparent !important;
    box-shadow: none;
}

.smms-hero__button::before,
.smms-about__button::before,
.smms-congress__button::before,
.smms-join__button::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    box-sizing: border-box;
    border: 2px solid var(--smms-button-border, var(--smms-button-bg));
    border-radius: 6px;
    background: var(--smms-button-bg);
    box-shadow: 0 6px 14px rgba(45, 45, 45, 0.16);
    content: "";
    transform: skewX(-20deg);
    transition: background-color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.smms-hero__button:hover,
.smms-hero__button:focus,
.smms-about__button:hover,
.smms-about__button:focus,
.smms-congress__button:hover,
.smms-congress__button:focus,
.smms-join__button:hover,
.smms-join__button:focus {
    border-color: transparent !important;
    background: transparent !important;
    /* L'ombre suit uniquement le fond oblique porté par ::before. */
    box-shadow: none;
}

.smms-hero__button:hover::before,
.smms-hero__button:focus::before,
.smms-about__button:hover::before,
.smms-about__button:focus::before,
.smms-congress__button:hover::before,
.smms-congress__button:focus::before,
.smms-join__button:hover::before,
.smms-join__button:focus::before {
    border-color: var(--smms-button-hover-border, var(--smms-button-hover-bg));
    background: var(--smms-button-hover-bg);
    box-shadow: 0 8px 17px rgba(45, 45, 45, 0.20);
}

.smms-hero__button--primary,
.smms-join__button {
    --smms-button-bg: #ffd833;
    --smms-button-hover-bg: #e9c42e;
    --smms-button-border: #ffd833;
    --smms-button-hover-border: #e9c42e;
}

.smms-hero__button--secondary {
    --smms-button-bg: #ffffff;
    --smms-button-hover-bg: var(--smms-header-bg-end);
    --smms-button-border: #ffffff;
    --smms-button-hover-border: var(--smms-header-bg-end);
}

.smms-about__button,
.smms-congress__button--primary {
    --smms-button-bg: var(--smms-primary);
    --smms-button-hover-bg: var(--smms-primary-hover);
    --smms-button-border: var(--smms-primary);
    --smms-button-hover-border: var(--smms-primary-hover);
}

.smms-congress__button--secondary {
    --smms-button-bg: #ffffff;
    --smms-button-hover-bg: var(--smms-header-bg-end);
    --smms-button-border: var(--smms-primary);
    --smms-button-hover-border: var(--smms-primary);
}

.smms-congress__button--secondary:hover,
.smms-congress__button--secondary:focus {
    color: var(--smms-primary-hover) !important;
}

/* Le panneau de connexion s'ouvre sous le header sticky. */
body:has(#sp-header.header-sticky) #offcanvasLogin {
    top: var(--smms-header-height);
    max-height: calc(100dvh - var(--smms-header-height));
}

/* --------------------------------------------------------------------------
   Forme oblique commune aux badges de titre de section
   -------------------------------------------------------------------------- */
.smms-hero__badge,
.smms-about__badge,
.smms-events-header__badge,
.smms-board__badge,
.smms-specialties__badge,
.smms-partners__badge,
.smms-join__badge {
    position: relative;
    isolation: isolate;
    border-color: transparent !important;
    border-radius: 6px;
    background: transparent !important;
    box-shadow: none;
}

.smms-hero__badge::before,
.smms-about__badge::before,
.smms-events-header__badge::before,
.smms-board__badge::before,
.smms-specialties__badge::before,
.smms-partners__badge::before,
.smms-join__badge::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    box-sizing: border-box;
    border: 1px solid var(--smms-badge-border, transparent);
    border-radius: 6px;
    background: var(--smms-badge-bg);
    box-shadow: var(--smms-badge-shadow, none);
    content: "";
    transform: skewX(var(--smms-badge-angle));
}

.smms-hero__badge {
    --smms-badge-bg: rgba(80, 144, 180, 0.92);
    --smms-badge-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.smms-about__badge,
.smms-events-header__badge,
.smms-specialties__badge {
    --smms-badge-bg: #eaf2f7;
}

.smms-board__badge,
.smms-partners__badge {
    --smms-badge-bg: #ffffff;
    --smms-badge-border: rgba(80, 144, 180, 0.12);
    --smms-badge-shadow: 0 8px 22px rgba(31, 55, 75, 0.08);
}

.smms-join__badge {
    --smms-badge-bg: rgba(255, 255, 255, 0.14);
    --smms-badge-border: rgba(255, 255, 255, 0.22);
}

/* Badges spécifiques de la section Congrès. */
.smms-congress__eyebrow,
.smms-congress__date {
    position: relative;
}

.smms-congress__eyebrow,
.smms-congress__date,
.smms-congress__calendar,
.smms-congress__major {
    isolation: isolate;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.smms-congress__eyebrow::before,
.smms-congress__date::before,
.smms-congress__calendar::before,
.smms-congress__major::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    box-sizing: border-box;
    border: 1px solid var(--smms-congress-badge-border, transparent);
    border-radius: var(--smms-congress-badge-radius, 6px);
    background: var(--smms-congress-badge-bg);
    box-shadow: var(--smms-congress-badge-shadow, none);
    content: "";
    transform: skewX(var(--smms-badge-angle));
}

.smms-congress__eyebrow {
    --smms-congress-badge-bg: #ffffff;
    --smms-congress-badge-border: rgba(80, 144, 180, 0.12);
    --smms-congress-badge-shadow: 0 8px 20px rgba(22, 40, 60, 0.10);
}

.smms-congress__date {
    --smms-congress-badge-bg: var(--smms-secondary);
}

.smms-congress__calendar {
    --smms-congress-badge-bg: rgba(255, 255, 255, 0.96);
    --smms-congress-badge-radius: 10px;
    --smms-congress-badge-shadow: 0 12px 25px rgba(22, 40, 60, 0.20);
}

.smms-congress__major {
    --smms-congress-badge-bg: var(--smms-primary);
    --smms-congress-badge-shadow: 0 10px 22px rgba(22, 40, 60, 0.22);
}

/* --------------------------------------------------------------------------
   Labels et pastilles informatives
   -------------------------------------------------------------------------- */
.smms-board-card__role-badge,
.sppb-addon-articles .field-entry.date,
.smms-event .event-kicker,
.smms-event .event-section-label,
.smms-event .event-meta-label {
    isolation: isolate;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}

.smms-event .event-kicker,
.smms-event .event-section-label,
.smms-event .event-meta-label {
    position: relative;
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
}

.smms-board-card__role-badge::before,
.sppb-addon-articles .field-entry.date::before,
.smms-event .event-kicker::before,
.smms-event .event-section-label::before,
.smms-event .event-meta-label::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 6px;
    background: var(--smms-label-bg);
    box-shadow: var(--smms-label-shadow, none);
    content: "";
    transform: skewX(var(--smms-badge-angle));
}

.smms-board-card__role-badge,
.sppb-addon-articles .field-entry.date {
    --smms-label-bg: #ffd833;
    --smms-label-shadow: 0 6px 15px rgba(22, 40, 60, 0.15);
}

.smms-event .event-kicker,
.smms-event .event-section-label,
.smms-event .event-meta-label {
    --smms-label-bg: #eaf2f7;
}

/* ========================================================================== 
   SMMS - Footer Joomla / Helix Ultimate
   Les colonnes et contenus restent gérés par les positions de modules Helix.
   ========================================================================== */
#sp-bottom {
    position: relative;
    padding: 76px 0 54px;
    border-top: 4px solid var(--smms-secondary);
    background: #17232d;
    color: #aebbc5;
    font-family: "Open Sans", Arial, sans-serif;
}

#sp-bottom > .container,
#sp-footer > .container {
    width: 100%;
    max-width: min(1536px, calc(100% - 32px)) !important;
    margin-right: auto;
    margin-left: auto;
    padding-right: 16px;
    padding-left: 16px;
}

#sp-bottom .row {
    row-gap: 42px;
}

#sp-bottom .sp-module {
    height: 100%;
    margin: 0;
}

#sp-bottom .sp-module-title {
    position: relative;
    margin: 0 0 26px;
    padding: 0 0 13px;
    border: 0;
    color: #ffffff;
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

#sp-bottom .sp-module-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: var(--smms-secondary);
    content: "";
}

#sp-bottom p,
#sp-bottom address,
#sp-bottom .custom {
    color: #aebbc5;
    font-size: 14px;
    line-height: 1.75;
}

#sp-bottom ul:not(.social-icons) {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sp-bottom ul:not(.social-icons) > li {
    margin: 0 0 11px;
    padding: 0;
    border: 0;
}

#sp-bottom ul:not(.social-icons) > li > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 2px 0;
    color: #aebbc5;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

#sp-bottom ul:not(.social-icons) > li > a::before {
    color: var(--smms-secondary);
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
}

#sp-bottom ul:not(.social-icons) > li > a:hover,
#sp-bottom ul:not(.social-icons) > li > a:focus {
    color: #ffffff;
    transform: translateX(3px);
}

#sp-bottom a:not(.btn) {
    color: #d6e0e6;
}

#sp-bottom a:not(.btn):hover,
#sp-bottom a:not(.btn):focus {
    color: var(--smms-secondary);
}

#sp-bottom img {
    width: auto;
    max-width: 190px;
    max-height: 145px;
    object-fit: contain;
}

#sp-bottom .social-icons {
    display: flex;
    gap: 11px;
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

#sp-bottom .social-icons > li {
    margin: 0;
}

#sp-bottom .social-icons > li > a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #ffffff;
    background: var(--smms-primary);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

#sp-bottom .social-icons > li > a:hover,
#sp-bottom .social-icons > li > a:focus {
    border-color: var(--smms-secondary);
    color: #2d2d2d;
    background: var(--smms-secondary);
}

#sp-bottom .btn,
#sp-bottom .sppb-btn {
    min-height: 46px;
    padding: 11px 21px;
    border: 0;
    border-radius: 6px;
    color: #ffffff !important;
    background: var(--smms-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

#sp-bottom .btn:hover,
#sp-bottom .btn:focus,
#sp-bottom .sppb-btn:hover,
#sp-bottom .sppb-btn:focus {
    color: #ffffff !important;
    background: var(--smms-primary-hover);
}

#sp-footer {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: #101a22;
    color: #8fa0ac;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
}

#sp-footer .container-inner {
    padding: 0;
    border: 0;
}

#sp-footer .row {
    align-items: center;
    row-gap: 14px;
}

#sp-footer .sp-copyright {
    color: #8fa0ac;
    line-height: 1.6;
}

#sp-footer a {
    color: #aebbc5;
    text-decoration: none;
}

#sp-footer a:hover,
#sp-footer a:focus {
    color: var(--smms-secondary);
}

#sp-footer ul.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#sp-footer ul.menu > li {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Copyright intégré au module personnalisé du footer. */
#sp-bottom .copyright,
#sp-footer .copyright {
    width: 100%;
    max-width: none !important;
    margin-top: 34px;
    padding: 27px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

#sp-bottom .copyright .container-inner,
#sp-footer .copyright .container-inner {
    padding: 0;
    border: 0;
}

#sp-bottom .copyright .row,
#sp-footer .copyright .row {
    align-items: center;
    row-gap: 16px;
}

#sp-bottom .copyright .sp-copyright,
#sp-footer .copyright .sp-copyright {
    color: #8fa0ac;
    font-size: 13px;
    line-height: 1.6;
}

#sp-bottom .copyright .menu-nav,
#sp-footer .copyright .menu-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#sp-bottom .copyright .menu-nav > li,
#sp-footer .copyright .menu-nav > li {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

#sp-bottom .copyright .menu-nav > li::marker,
#sp-footer .copyright .menu-nav > li::marker {
    content: "";
}

#sp-bottom .copyright .menu-nav > li > a,
#sp-footer .copyright .menu-nav > li > a {
    display: inline-flex;
    padding: 0;
    color: #aebbc5;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    transform: none;
}

#sp-bottom .copyright .menu-nav > li > a::before,
#sp-footer .copyright .menu-nav > li > a::before {
    display: none;
    content: none;
}

#sp-bottom .copyright .menu-nav > li > a:hover,
#sp-bottom .copyright .menu-nav > li > a:focus,
#sp-footer .copyright .menu-nav > li > a:hover,
#sp-footer .copyright .menu-nav > li > a:focus {
    color: var(--smms-secondary);
    transform: none;
}

@media (max-width: 991.98px) {
    #sp-bottom {
        padding: 62px 0 46px;
    }
}

@media (max-width: 767.98px) {
    #sp-bottom {
        padding: 52px 0 38px;
    }

    #sp-bottom > .container,
    #sp-footer > .container {
        max-width: 100% !important;
        padding-right: 20px;
        padding-left: 20px;
    }

    #sp-bottom .row {
        row-gap: 36px;
    }

    #sp-footer {
        padding: 22px 0;
        text-align: center;
    }

    #sp-footer ul.menu {
        justify-content: center;
    }

    #sp-bottom .copyright,
    #sp-footer .copyright {
        margin-top: 28px;
        padding-top: 23px;
        text-align: center;
    }

    #sp-bottom .copyright .menu-nav,
    #sp-footer .copyright .menu-nav {
        justify-content: center;
    }
}

/* ========================================================================== 
   SMEDS - Titre des pages secondaires
   Structure Joomla et fil d'Ariane natif conservés.
   ========================================================================== */
#sp-section-1 > .row {
    margin-right: 0;
    margin-left: 0;
}

#sp-title {
    padding-right: 0;
    padding-left: 0;
}

.sp-page-title {
    position: relative;
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 70px 0;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    text-align: center;
    isolation: isolate;
}

.sp-page-title::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 49, 72, 0.94) 0%,
        rgba(0, 55, 79, 0.88) 35%,
        rgba(0, 58, 82, 0.78) 50%,
        rgba(0, 55, 79, 0.88) 65%,
        rgba(0, 49, 72, 0.94) 100%
    );
    content: "";
}

.sp-page-title > .container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: min(1536px, calc(100% - 32px));
    flex-direction: column;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
    padding-right: 16px;
    padding-left: 16px;
}

.sp-page-title .sp-page-title-heading {
    max-width: 1000px;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0, 30, 45, 0.28);
}

.sp-page-title .mod-breadcrumbs__wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
}

.sp-page-title .breadcrumb {
    display: flex;
    width: fit-content;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 9px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(0, 49, 72, 0.32);
    box-shadow: 0 8px 22px rgba(0, 30, 45, 0.14);
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(5px);
}

.sp-page-title .breadcrumb > li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.sp-page-title .breadcrumb a,
.sp-page-title .breadcrumb .active,
.sp-page-title .breadcrumb .active span {
    color: #ffffff;
}

.sp-page-title .breadcrumb a {
    font-weight: 700;
    text-decoration: none;
}

.sp-page-title .breadcrumb a:hover,
.sp-page-title .breadcrumb a:focus {
    color: var(--smms-secondary);
}

.sp-page-title .breadcrumb-item + .breadcrumb-item::before {
    color: var(--smms-secondary);
}

@media (max-width: 767.98px) {
    .sp-page-title {
        min-height: 210px;
        padding: 38px 0;
    }

    .sp-page-title::before {
        background: rgba(0, 49, 72, 0.84);
    }

    .sp-page-title > .container {
        max-width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .sp-page-title .sp-page-title-heading {
        margin-bottom: 18px;
        font-size: clamp(34px, 10vw, 46px);
    }

    .sp-page-title .breadcrumb {
        padding: 8px 12px !important;
        font-size: 13px;
    }

    .sp-page-title .mod-breadcrumbs__here {
        display: none;
    }
}

#sp-main-body {
    padding: 60px 0;
}

/* ========================================================================== 
   SMEDS - Formulaire de contact RSForm
   ========================================================================== */
#userForm:has(.rsform-block-envoyer) {
    width: calc(100% - 32px);
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 56px);
    border: 1px solid rgba(80, 144, 180, 0.18);
    border-top: 5px solid var(--smms-secondary);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(22, 40, 60, 0.12);
    font-family: "Open Sans", Arial, sans-serif;
}

#userForm:has(.rsform-block-envoyer) > h2 {
    position: relative;
    margin: 0 0 42px;
    padding: 80px 0 24px;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    letter-spacing: -0.02em;
}

#userForm:has(.rsform-block-envoyer) > h2::before {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: var(--smms-primary);
    content: "\f0e0";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(80, 144, 180, 0.26);
    transform: translateX(-50%);
}

#userForm:has(.rsform-block-envoyer) > h2::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 62px;
    height: 4px;
    border-radius: 999px;
    background: var(--smms-secondary);
    content: "";
    transform: translateX(-50%);
}

#userForm:has(.rsform-block-envoyer) .formContainer > .row > .col-md-12 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

#userForm:has(.rsform-block-envoyer) .rsform-block {
    min-width: 0;
    margin: 0 !important;
}

#userForm:has(.rsform-block-envoyer) .rsform-block-email,
#userForm:has(.rsform-block-envoyer) .rsform-block-sujet,
#userForm:has(.rsform-block-envoyer) .rsform-block-message,
#userForm:has(.rsform-block-envoyer) .rsform-block-captcha,
#userForm:has(.rsform-block-envoyer) .rsform-block-envoyer {
    grid-column: 1 / -1;
}

#userForm:has(.rsform-block-envoyer) .formControlLabel {
    display: block;
    margin-bottom: 8px;
    color: #344957;
    font-size: 14px;
    font-weight: 700;
}

#userForm:has(.rsform-block-envoyer) .formRequired {
    margin-left: 4px;
    color: #b92f3b;
    font-weight: 800;
}

#userForm:has(.rsform-block-envoyer) .form-control {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #cbd8e0;
    border-radius: 8px;
    color: var(--smms-text);
    background: #fbfdfe;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease,
        box-shadow 0.2s ease;
}

#userForm:has(.rsform-block-envoyer) textarea.form-control {
    min-height: 170px;
    resize: vertical;
}

#userForm:has(.rsform-block-envoyer) .form-control:hover {
    border-color: #9fb9c8;
    background: #ffffff;
}

#userForm:has(.rsform-block-envoyer) .form-control:focus {
    border-color: var(--smms-primary);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(80, 144, 180, 0.16);
}

#userForm:has(.rsform-block-envoyer) .formValidation {
    display: block;
    margin-top: 6px;
    color: #a82e39;
    font-size: 12px;
    line-height: 1.45;
}

#userForm:has(.rsform-block-envoyer) .formNoError:empty,
#userForm:has(.rsform-block-envoyer) .formNoError {
    display: none;
}

#userForm:has(.rsform-block-envoyer) [data-rsfp-hashcash] {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 16px;
    border: 1px solid rgba(80, 144, 180, 0.28);
    border-radius: 9px;
    color: #466779;
    background: rgba(80, 144, 180, 0.08);
    font-size: 14px;
    font-weight: 700;
}

#userForm:has(.rsform-block-envoyer) [data-rsfp-hashcash] .hashcash {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

#userForm:has(.rsform-block-envoyer) .rsform-block-envoyer {
    margin-top: 5px !important;
    padding-top: 28px;
    border-top: 1px solid #e3ebf0;
    text-align: center;
}

#userForm:has(.rsform-block-envoyer) .rsform-submit-button {
    display: inline-flex;
    min-width: 210px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: var(--smms-primary);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(80, 144, 180, 0.26);
}

#userForm:has(.rsform-block-envoyer) .rsform-submit-button:hover,
#userForm:has(.rsform-block-envoyer) .rsform-submit-button:focus {
    color: #ffffff;
    background: var(--smms-primary-hover);
}

@media (max-width: 767.98px) {
    #userForm:has(.rsform-block-envoyer) {
        width: calc(100% - 24px);
        padding: 28px 20px 30px;
        border-radius: 12px;
    }

    #userForm:has(.rsform-block-envoyer) > h2 {
        margin-bottom: 32px;
        font-size: 32px;
    }

    #userForm:has(.rsform-block-envoyer) .formContainer > .row > .col-md-12 {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    #userForm:has(.rsform-block-envoyer) .rsform-block {
        grid-column: 1;
    }

    #userForm:has(.rsform-block-envoyer) [data-rsfp-hashcash] {
        align-items: flex-start;
        text-align: left;
    }

    #userForm:has(.rsform-block-envoyer) .rsform-submit-button {
        width: 100%;
        min-width: 0;
    }
}

/* ========================================================================== 
   SMEDS - Connexion Community Builder
   ========================================================================== */
#system-message-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100% - 32px));
    max-width: 520px;
    z-index: 10000;
    margin: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#system-message-container joomla-alert,
#system-message-container .alert {
    pointer-events: auto;
}

#system-message-container:not(:has(joomla-alert, .alert)) {
    display: none;
}

#system-message-container:has(joomla-alert[type="danger"], .alert-danger) {
    width: min(520px, calc(100% - 32px));
    max-width: 520px;
    margin: 0;
}

#system-message-container.smeds-system-message--toast {
    position: fixed;
    top: auto;
    right: 20px;
    bottom: 20px;
    left: auto;
    width: min(420px, calc(100% - 40px));
    max-width: 420px;
    margin: 0;
    z-index: 10000;
    transform: none;
    animation: smeds-toast-in 0.35s ease both;
}

#system-message-container.smeds-system-message--toast:has(joomla-alert[type="danger"], .alert-danger) {
    width: min(420px, calc(100% - 40px));
    max-width: 420px;
    margin: 0;
}

@keyframes smeds-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    #system-message-container.smeds-system-message--toast,
    #system-message-container.smeds-system-message--toast:has(joomla-alert[type="danger"], .alert-danger) {
        top: auto;
        right: 12px;
        bottom: 74px;
        left: auto;
        width: calc(100% - 24px);
        max-width: none;
        transform: none;
    }
}

#system-message-container joomla-alert[type="danger"],
#system-message-container .alert-danger {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 17px 52px 17px 54px;
    border: 1px solid #d85761;
    border-left: 6px solid #b92f3b;
    border-radius: 10px;
    color: #76212a;
    background: #fff0f1;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 10px 24px rgba(128, 32, 42, 0.14);
}

#system-message-container joomla-alert[type="danger"]::before,
#system-message-container .alert-danger::before {
    position: absolute;
    top: 50%;
    left: 20px;
    color: #b92f3b;
    content: "\f071";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-size: 19px;
    font-weight: 900;
    transform: translateY(-50%);
}

#system-message-container joomla-alert[type="danger"] .alert-heading {
    display: none;
}

#system-message-container joomla-alert[type="danger"] .alert-message {
    color: inherit;
}

#system-message-container joomla-alert[type="danger"] .joomla-alert--close {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #76212a;
    background: rgba(185, 47, 59, 0.10);
    font-size: 22px;
    line-height: 30px;
    transform: translateY(-50%);
}

#system-message-container joomla-alert[type="danger"] .joomla-alert--close:hover,
#system-message-container joomla-alert[type="danger"] .joomla-alert--close:focus {
    color: #ffffff;
    background: #b92f3b;
}

.cbLoginForm {
    width: calc(100% - 32px);
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 54px);
    border: 1px solid rgba(80, 144, 180, 0.18);
    border-top: 5px solid var(--smms-secondary);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(22, 40, 60, 0.12);
    font-family: "Open Sans", Arial, sans-serif;
}

.smeds-login__header {
    position: relative;
    margin-bottom: 34px;
    padding-bottom: 25px;
    text-align: center;
}

.smeds-login__header::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 62px;
    height: 4px;
    border-radius: 999px;
    background: var(--smms-secondary);
    content: "";
    transform: translateX(-50%);
}

.smeds-login__icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: var(--smms-primary);
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(80, 144, 180, 0.26);
}

.smeds-login__title {
    margin: 0 0 12px;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.smeds-login__intro {
    max-width: 510px;
    margin: 0 auto;
    color: #5f7180;
    font-size: 15px;
    line-height: 1.65;
}

.cbLoginForm .userdata {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cbLoginForm .userdata > p,
.cbLoginForm .form-group {
    margin: 0 0 20px;
}

.cbLoginForm label:not(.form-check-label) {
    display: block;
    margin-bottom: 8px;
    color: #344957;
    font-size: 14px;
    font-weight: 700;
}

.cbLoginForm input[type="text"],
.cbLoginForm input[type="email"],
.cbLoginForm input[type="password"],
.cbLoginForm .form-control,
.cbLoginForm .inputbox:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #cbd8e0;
    border-radius: 8px;
    color: var(--smms-text);
    background: #fbfdfe;
    box-shadow: none;
}

.cbLoginForm input:focus,
.cbLoginForm .form-control:focus {
    border-color: var(--smms-primary);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(80, 144, 180, 0.16);
}

.cbLoginForm .input-group {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.cbLoginForm .input-group > .form-control {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
    border-radius: 8px 0 0 8px;
}

.cbLoginForm .input-group-text,
.cbLoginForm .input-password-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 52px;
    justify-content: center;
    border-color: #cbd8e0;
    border-radius: 0 8px 8px 0;
    color: var(--smms-primary);
    background: #eaf2f7;
}

.cbLoginForm #form-login-remember,
.cbLoginForm .mod-login__remember {
    display: flex;
    align-items: center;
}

.cbLoginForm #form-login-remember label,
.cbLoginForm .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #506471;
    font-size: 14px;
    cursor: pointer;
}

.cbLoginForm input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--smms-primary);
}

.cbLoginForm button[type="submit"] {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: var(--smms-primary);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(80, 144, 180, 0.26);
}

.cbLoginForm button[type="submit"]:hover,
.cbLoginForm button[type="submit"]:focus {
    color: #ffffff;
    background: var(--smms-primary-hover);
}

.cbLoginForm #form-login-links,
.cbLoginForm .mod-login__options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 27px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #e3ebf0;
    list-style: none;
}

.cbLoginForm #form-login-links li,
.cbLoginForm .mod-login__options li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cbLoginForm #form-login-links a,
.cbLoginForm .mod-login__options a {
    color: var(--smms-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cbLoginForm #form-login-links a:hover,
.cbLoginForm #form-login-links a:focus,
.cbLoginForm .mod-login__options a:hover,
.cbLoginForm .mod-login__options a:focus {
    color: var(--smms-primary-hover);
    text-decoration: underline;
}

.cbLoginForm .pretext,
.cbLoginForm .posttext {
    color: #5f7180;
    text-align: center;
}

@media (max-width: 575.98px) {
    .cbLoginForm {
        width: calc(100% - 24px);
        padding: 28px 20px 30px;
        border-radius: 12px;
    }

    .smeds-login__header {
        margin-bottom: 28px;
    }

    .smeds-login__intro {
        font-size: 14px;
    }

    .cbLoginForm #form-login-links,
    .cbLoginForm .mod-login__options {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================================================== 
   SMEDS - Réinitialisation du mot de passe Joomla
   ========================================================================== */
.smeds-reset {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: "Open Sans", Arial, sans-serif;
}

.smeds-reset__card {
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid rgba(80, 144, 180, 0.18);
    border-top: 5px solid var(--smms-secondary);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(22, 40, 60, 0.12);
}

.smeds-reset__header {
    position: relative;
    margin-bottom: 34px;
    padding-bottom: 25px;
    text-align: center;
}

.smeds-reset__header::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 62px;
    height: 4px;
    border-radius: 999px;
    background: var(--smms-secondary);
    content: "";
    transform: translateX(-50%);
}

.smeds-reset__icon {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: var(--smms-primary);
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(80, 144, 180, 0.26);
}

.smeds-reset__title {
    margin: 0 0 14px;
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.smeds-reset__intro {
    max-width: 570px;
    margin: 0 auto;
    color: #5f7180;
    font-size: 16px;
    line-height: 1.7;
}

.smeds-reset__form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.smeds-reset__form .control-group {
    margin-bottom: 20px;
}

.smeds-reset__form label {
    display: block;
    margin-bottom: 8px;
    color: #344957;
    font-size: 14px;
    font-weight: 700;
}

.smeds-reset__form .form-control {
    width: 100%;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid #cbd8e0;
    border-radius: 8px;
    color: var(--smms-text);
    background: #fbfdfe;
    box-shadow: none;
}

.smeds-reset__form .form-control:focus {
    border-color: var(--smms-primary);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(80, 144, 180, 0.16);
}

.smeds-reset__help {
    display: flex;
    gap: 10px;
    margin: 5px 0 27px;
    padding: 13px 15px;
    border-radius: 8px;
    color: #466779;
    background: rgba(80, 144, 180, 0.10);
    font-size: 13px;
    line-height: 1.55;
}

.smeds-reset__help i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: var(--smms-primary);
}

.smeds-reset .com-users-reset__submit {
    text-align: center;
}

.smeds-reset .com-users-reset__submit .btn {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 27px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: var(--smms-primary);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(80, 144, 180, 0.26);
}

.smeds-reset .com-users-reset__submit .btn:hover,
.smeds-reset .com-users-reset__submit .btn:focus {
    color: #ffffff;
    background: var(--smms-primary-hover);
}

@media (max-width: 575.98px) {
    .smeds-reset {
        padding: 0 12px;
    }

    .smeds-reset__card {
        padding: 28px 20px 30px;
        border-radius: 12px;
    }

    .smeds-reset__header {
        margin-bottom: 28px;
    }

    .smeds-reset__intro {
        font-size: 14px;
    }

    .smeds-reset .com-users-reset__submit .btn {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        font-size: 14px;
    }
}

/* ========================================================================== 
   SMEDS - Formulaire d'inscription Community Builder
   ========================================================================== */
.cbRegistration.cbRegistrationFlat {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(80, 144, 180, 0.16);
    border-top: 5px solid var(--smms-secondary);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(22, 40, 60, 0.12);
    font-family: "Open Sans", Arial, sans-serif;
}

.cbRegistration .cbRegistrationHeader {
    position: relative;
    margin: 0 0 38px !important;
    padding: 0 0 23px;
    border: 0 !important;
    text-align: center;
}

.cbRegistration .cbRegistrationHeader::before {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--smms-primary);
    box-shadow: 0 9px 22px rgba(80, 144, 180, 0.24);
    content: "\f234";
    font-family: "Font Awesome 6 Free";
    font-size: 22px;
    font-weight: 900;
}

.cbRegistration .cbRegistrationHeader::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 62px;
    height: 4px;
    border-radius: 999px;
    background: var(--smms-secondary);
    content: "";
    transform: translateX(-50%);
}

.cbRegistration .cbRegistrationTitle {
    color: var(--smms-text);
    font-family: "Barlow", "Open Sans", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.cbRegistration .cb_form_line {
    display: grid;
    grid-template-columns: minmax(145px, 190px) minmax(0, 1fr);
    align-items: center;
    gap: 16px 24px;
    margin: 0 0 19px;
    padding: 0;
}

.cbRegistration .cb_form_line > label {
    flex: none !important;
    width: auto;
    max-width: none;
    padding: 0;
    color: #344957;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.cbRegistration .cb_form_line > .cb_field {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
}

.cbRegistration .cb_field > div {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.cbRegistration .cb_field > div > .form-control {
    min-width: 0;
    flex: 1 1 auto;
}

/* Le message de validation ne doit jamais partager la ligne du champ. */
.cbRegistration .cb_field > div > .cbValidationMessage,
.cbRegistration .cb_field > div > .invalid-feedback,
.cbRegistration .cb_field > div > label.error {
    order: 10;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.cbRegistration .form-control {
    width: 100%;
    min-height: 52px;
    padding: 11px 15px;
    border: 1px solid #cbd8e0;
    border-radius: 8px;
    color: var(--smms-text);
    background: #fbfdfe;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cbRegistration .form-control:hover {
    border-color: #9fb9c8;
    background: #ffffff;
}

.cbRegistration .form-control:focus {
    border-color: var(--smms-primary);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(80, 144, 180, 0.16);
}

.cbRegistration select.form-control {
    cursor: pointer;
}

.cbRegistration .cbtt_select .cb_field > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.cbRegistration .cbtt_select select.form-control {
    width: 100% !important;
    min-width: 0;
    max-width: none;
}

.cbRegistration .cbtt_select label.error,
.cbRegistration .cbtt_select .invalid-feedback {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}

.cbRegistration .cbPasswordUnmask {
    display: flex !important;
    width: auto !important;
    min-width: 0;
    flex: 1 1 0;
    flex-wrap: nowrap;
}

.cbRegistration .cbPasswordUnmask .form-control {
    min-width: 0;
    border-radius: 8px 0 0 8px;
}

.cbRegistration .cbPasswordUnmask .input-group-append {
    display: flex;
}

.cbRegistration .cbPasswordUnmaskShow,
.cbRegistration .cbPasswordUnmaskHide {
    min-width: 92px;
    min-height: 52px;
    padding: 8px 13px;
    border: 1px solid #cbd8e0 !important;
    border-left: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    color: var(--smms-primary) !important;
    background: #eaf2f7 !important;
    font-size: 13px;
    font-weight: 700;
}

.cbRegistration .cbPasswordUnmaskShow:hover,
.cbRegistration .cbPasswordUnmaskShow:focus,
.cbRegistration .cbPasswordUnmaskHide:hover,
.cbRegistration .cbPasswordUnmaskHide:focus {
    color: #ffffff !important;
    background: var(--smms-primary) !important;
}

.cbRegistration .cbFieldIcons {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
}

.cbRegistration .cbFieldIcons .fa {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    color: #728795 !important;
    background: #edf3f6;
    font-size: 10px;
}

.cbRegistration .cbFieldIcons .fa-star {
    color: #9d7900 !important;
    background: rgba(255, 216, 51, 0.30);
}

.cbRegistration .cbRegistrationButtons {
    margin: 31px 0 0;
    padding: 29px 0 0;
    border-top: 1px solid #e3ebf0;
}

.cbRegistration .cbRegistrationButtons > div {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0;
    text-align: center;
}

.cbRegistration .cbRegistrationSubmit {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border: 0 !important;
    border-radius: 6px;
    color: #ffffff !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    box-shadow: none !important;
}

.cbRegistration .cbRegistrationSubmit::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 6px;
    background: var(--smms-primary);
    box-shadow: 0 10px 24px rgba(80, 144, 180, 0.28);
    content: "";
    transform: skewX(-20deg);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cbRegistration .cbRegistrationSubmit:hover::before,
.cbRegistration .cbRegistrationSubmit:focus::before {
    background: var(--smms-primary-hover);
    box-shadow: 0 13px 28px rgba(64, 112, 145, 0.32);
}

.cbRegistration .error,
.cbRegistration .invalid {
    border-color: #c93f4b;
}

.cbRegistration label.error,
.cbRegistration .invalid-feedback {
    color: #a82e39;
    font-size: 12px;
}

@media (max-width: 767.98px) {
    #sp-main-body {
        padding: 50px 0;
    }

    .cbRegistration.cbRegistrationFlat {
        padding: 27px 20px 30px;
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(22, 40, 60, 0.10);
    }

    .cbRegistration .cbRegistrationHeader {
        margin-bottom: 31px !important;
    }

    .cbRegistration .cb_form_line {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }

    /* Une ligne pour le contrôle, une ligne compacte pour les icônes,
       puis une ligne pour l'éventuel message de validation. */
    .cbRegistration .cb_field > div,
    .cbRegistration .cbtt_select .cb_field > div {
        display: grid;
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .cbRegistration .cb_field > div > .form-control,
    .cbRegistration .cbtt_select select.form-control,
    .cbRegistration .cbPasswordUnmask {
        grid-column: 1;
        width: 100% !important;
        min-width: 0;
        max-width: 100%;
    }

    .cbRegistration .cbPasswordUnmask {
        box-sizing: border-box;
        flex: none;
    }

    .cbRegistration .cbPasswordUnmask .form-control {
        width: 1%;
        min-width: 0;
        flex: 1 1 0;
    }

    .cbRegistration .cbPasswordUnmaskShow,
    .cbRegistration .cbPasswordUnmaskHide {
        min-width: 78px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .cbRegistration .cbFieldIcons {
        grid-column: 1;
        width: auto !important;
        justify-self: end;
        justify-content: flex-end;
    }

    .cbRegistration .cb_field > div > .cbValidationMessage,
    .cbRegistration .cb_field > div > .invalid-feedback,
    .cbRegistration .cb_field > div > label.error {
        grid-column: 1;
    }

    .cbRegistration .cbRegistrationSubmit {
        width: calc(100% - 18px);
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* SMEDS - Page partenaires : six logos de proportions différentes.
   Portée limitée à cette page pour préserver le bloc de l'accueil. */
.smms-partners--page,
.smms-partners--page * {
    box-sizing: border-box;
}

.smms-partners--page .smms-partners__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.smms-partners--page .smms-partner {
    min-width: 0;
    min-height: 220px;
    margin: 0;
    padding: 32px;
}

.smms-partners--page .smms-partner__logo {
    width: auto;
    height: auto;
    max-width: min(100%, 220px);
    max-height: 130px;
    object-fit: contain;
}

.smms-partners--page .smms-partner--wide .smms-partner__logo {
    max-width: min(100%, 300px);
    max-height: 110px;
}

.smms-partners--page .smms-partner--tall .smms-partner__logo {
    max-width: min(100%, 160px);
    max-height: 156px;
}

@media (max-width: 991px) {
    .smms-partners--page .smms-partners__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .smms-partners--page .smms-partners__grid {
        grid-template-columns: 1fr;
    }

    .smms-partners--page .smms-partner {
        min-height: 190px;
        padding: 24px;
    }
}
