/* ============================================================================
   RUNIXYS — FRONT-OFFICE DESIGN SYSTEM
   Palette : lime #C3E92D · dark #121212 · gray #5E6267 · surface #F7F7F7
   Typo   : Oswald (titres / boutons) · Jost (texte courant)
   ========================================================================== */

:root {
    --rx-lime: #C3E92D;
    --rx-lime-soft: rgba(195, 233, 45, 0.14);
    --rx-lime-hover: #AFD41F;
    --rx-dark: #121212;
    --rx-dark-2: #1B1B1B;
    --rx-dark-3: #232323;
    --rx-gray: #5E6267;
    --rx-gray-2: #A0A0A0;
    --rx-surface: #F7F7F7;
    --rx-white: #FFFFFF;
    --rx-border: rgba(18, 18, 18, 0.10);
    --rx-border-dark: rgba(255, 255, 255, 0.12);
    --rx-danger: #D93025;
    --rx-danger-soft: rgba(217, 48, 37, 0.08);

    --rx-font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --rx-font-body: 'Jost', 'Segoe UI', sans-serif;

    --rx-radius: 6px;
    --rx-radius-lg: 10px;
    --rx-topbar-h: 44px;
    --rx-header-h: 90px;
    --rx-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --rx-shadow: 0 18px 45px rgba(18, 18, 18, 0.12);
}

/* ------------------------------------------------------------------ BASE -- */

.rx-page,
body {
    font-family: var(--rx-font-body);
    color: var(--rx-dark);
    background-color: var(--rx-white);
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rx-font-head);
    color: var(--rx-dark);
    font-weight: 600;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--rx-ease);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--rx-lime);
    color: var(--rx-dark);
}

/* Lien d'évitement (accessibilité clavier) */
.rx-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--rx-lime);
    color: var(--rx-dark);
    font-family: var(--rx-font-head);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 0 0 var(--rx-radius) 0;
}

.rx-skip-link:focus {
    left: 0;
}

.rx-page a:focus-visible,
.rx-page button:focus-visible,
.rx-page input:focus-visible,
.rx-page a:focus,
.rx-page button:focus,
.rx-page input:focus {
    outline: 3px solid var(--rx-lime);
    outline-offset: 3px;
}

/* --------------------------------------------------------------- BUTTONS -- */

.rx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--rx-font-head);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 40px;
    border-radius: var(--rx-radius);
    border: 2px solid transparent;
    background: var(--rx-lime);
    color: var(--rx-dark);
    cursor: pointer;
    transition: background 0.25s var(--rx-ease), color 0.25s var(--rx-ease),
        border-color 0.25s var(--rx-ease), transform 0.25s var(--rx-ease);
}

.rx-btn:hover {
    background: var(--rx-dark);
    color: var(--rx-white);
    transform: translateY(-2px);
}

.rx-btn svg {
    flex: 0 0 auto;
}

.rx-btn--sm {
    padding: 12px 26px;
    font-size: 14px;
}

.rx-btn--pill {
    border-radius: 50px;
}

.rx-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--rx-white);
}

.rx-btn--ghost:hover {
    background: var(--rx-white);
    border-color: var(--rx-white);
    color: var(--rx-dark);
}

.rx-btn--dark {
    background: var(--rx-dark);
    color: var(--rx-white);
}

.rx-btn--dark:hover {
    background: var(--rx-lime);
    color: var(--rx-dark);
}

.rx-btn--outline-dark {
    background: transparent;
    border-color: var(--rx-dark);
    color: var(--rx-dark);
}

.rx-btn--outline-dark:hover {
    background: var(--rx-dark);
    border-color: var(--rx-dark);
    color: var(--rx-white);
}

.rx-btn--block {
    display: flex;
    width: 100%;
}

.rx-btn.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.rx-btn.is-loading .rx-btn-icon {
    display: none;
}

.rx-btn.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(18, 18, 18, 0.3);
    border-top-color: var(--rx-dark);
    border-radius: 50%;
    animation: rx-spin 0.7s linear infinite;
}

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

/* --------------------------------------------------------------- TOP BAR -- */

.rx-topbar {
    background: var(--rx-lime);
    color: var(--rx-dark);
    font-size: 15px;
    min-height: var(--rx-topbar-h);
    display: flex;
    align-items: center;
}

.rx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.rx-topbar-list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.rx-topbar-list li,
.rx-topbar-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rx-topbar-list a:hover {
    color: var(--rx-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rx-topbar-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rx-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--rx-dark);
    transition: background 0.25s var(--rx-ease), color 0.25s var(--rx-ease);
}

.rx-topbar-social a:hover {
    background: var(--rx-dark);
    color: var(--rx-lime);
}

@media (max-width: 991.98px) {
    .rx-topbar {
        display: none;
    }
}

/* ---------------------------------------------------------------- HEADER -- */

.rx-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--rx-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Le bandeau header reste au-dessus du panneau mobile ouvert */
.rx-header.is-menu-open {
    z-index: 1060;
}

.rx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--rx-header-h);
}

.rx-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.rx-brand img {
    height: 50px;
    width: auto;
    /* logo sombre -> version blanche sur fond #121212 */
    filter: brightness(0) invert(1);
}

.rx-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rx-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--rx-font-head);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rx-white);
    padding: 8px 0;
}

.rx-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--rx-lime);
    transition: width 0.3s var(--rx-ease);
}

.rx-nav-link:hover,
.rx-nav-link.is-active {
    color: var(--rx-lime);
}

.rx-nav-link:hover::after,
.rx-nav-link.is-active::after {
    width: 100%;
}

.rx-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

/* Compte utilisateur (dropdown) */
.rx-account {
    position: relative;
}

.rx-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px solid var(--rx-border-dark);
    background: rgba(255, 255, 255, 0.06);
    color: var(--rx-white);
    font-family: var(--rx-font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.25s var(--rx-ease), background 0.25s var(--rx-ease);
}

.rx-account-toggle:hover {
    border-color: var(--rx-lime);
    background: rgba(195, 233, 45, 0.12);
}

.rx-account-toggle .rx-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.rx-account-toggle .rx-initials {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--rx-lime);
    color: var(--rx-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rx-account-toggle .rx-caret {
    transition: transform 0.25s var(--rx-ease);
}

.rx-account.is-open .rx-caret {
    transform: rotate(180deg);
}

.rx-account-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 250px;
    background: var(--rx-white);
    border: 1px solid var(--rx-border);
    border-radius: var(--rx-radius-lg);
    box-shadow: var(--rx-shadow);
    padding: 6px;
    display: none;
    flex-direction: column;
    z-index: 1100;
}

.rx-account.is-open .rx-account-menu {
    display: flex;
}

.rx-account-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--rx-border);
    margin-bottom: 4px;
}

.rx-account-head strong {
    display: block;
    font-family: var(--rx-font-head);
    font-size: 16px;
    font-weight: 500;
    color: var(--rx-dark);
}

.rx-account-head span {
    display: block;
    font-size: 13px;
    color: var(--rx-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
}

.rx-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--rx-radius);
    font-size: 15px;
    color: var(--rx-dark);
    transition: background 0.2s var(--rx-ease), color 0.2s var(--rx-ease);
}

.rx-account-item:hover {
    background: var(--rx-surface);
    color: var(--rx-dark);
}

.rx-account-item--danger {
    color: #DB4444;
}

.rx-account-item--danger:hover {
    background: rgba(219, 68, 68, 0.1);
    color: #DB4444;
}

.rx-account-divider {
    height: 1px;
    background: var(--rx-border);
    margin: 4px 0;
}

/* Burger + panneau mobile */
.rx-burger {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: var(--rx-radius);
    border: 1px solid var(--rx-border-dark);
    background: transparent;
    color: var(--rx-white);
    cursor: pointer;
}

.rx-burger:hover {
    border-color: var(--rx-lime);
    color: var(--rx-lime);
}

.rx-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--rx-ease), visibility 0.3s var(--rx-ease);
    z-index: 1040;
}

.rx-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1199.98px) {
    .rx-nav {
        gap: 24px;
    }

    .rx-nav-link {
        font-size: 15px;
    }
}

@media (max-width: 991.98px) {
    .rx-header-inner {
        min-height: 74px;
    }

    .rx-brand img {
        height: 42px;
    }

    .rx-burger {
        display: inline-flex;
    }

    .rx-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(86vw, 340px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 90px 28px 32px;
        background: var(--rx-dark);
        border-left: 1px solid var(--rx-border-dark);
        transform: translateX(100%);
        transition: transform 0.35s var(--rx-ease);
        overflow-y: auto;
        z-index: 1050;
    }

    .rx-nav.is-open {
        transform: translateX(0);
    }

    .rx-nav-link {
        width: 100%;
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .rx-nav-link::after {
        display: none;
    }

    .rx-header-actions .rx-btn {
        padding: 11px 18px;
        font-size: 13px;
    }

    .rx-header-actions .rx-account-name {
        display: none;
    }

    .rx-account-menu {
        right: -10px;
        min-width: 230px;
    }

    .rx-burger-icon--close {
        display: none;
    }

    .rx-header.is-menu-open .rx-burger-icon--open {
        display: none;
    }

    .rx-header.is-menu-open .rx-burger-icon--close {
        display: block;
    }
}

/* ------------------------------------------------------------------ HERO -- */

.rx-hero {
    position: relative;
    overflow: hidden;
    background: var(--rx-dark);
    min-height: 620px;
    height: calc(100vh - var(--rx-header-h));
    max-height: 858px;
}

.rx-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--rx-ease), visibility 0.9s var(--rx-ease);
}

.rx-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.rx-slide-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.06);
    transition: transform 7s linear;
}

.rx-slide.is-active .rx-slide-media {
    transform: scale(1);
}

.rx-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.88) 0%, rgba(18, 18, 18, 0.62) 45%, rgba(18, 18, 18, 0.35) 100%);
}

.rx-slide-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 60px 0 120px;
}

.rx-slide-caption {
    max-width: 820px;
}

.rx-eyebrow {
    display: inline-block;
    font-family: var(--rx-font-head);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rx-lime);
    margin-bottom: 18px;
}

.rx-slide-title {
    font-family: var(--rx-font-head);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--rx-white);
    margin-bottom: 22px;
}

.rx-slide-desc {
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
    max-width: 620px;
    margin-bottom: 34px;
}

.rx-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Révélations */
.rx-reveal {
    opacity: 0;
    transform: translateY(26px);
}

.rx-slide.is-active .rx-reveal {
    animation: rxFadeUp 0.8s var(--rx-ease) forwards;
}

.rx-slide.is-active .rx-reveal--2 {
    animation-delay: 0.12s;
}

.rx-slide.is-active .rx-reveal--3 {
    animation-delay: 0.24s;
}

.rx-slide.is-active .rx-reveal--4 {
    animation-delay: 0.36s;
}

@keyframes rxFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contrôles du slider */
.rx-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(18, 18, 18, 0.35);
    color: var(--rx-white);
    cursor: pointer;
    transition: background 0.25s var(--rx-ease), border-color 0.25s var(--rx-ease), color 0.25s var(--rx-ease);
}

.rx-hero-arrow:hover {
    background: var(--rx-lime);
    border-color: var(--rx-lime);
    color: var(--rx-dark);
}

.rx-hero-arrow--prev {
    left: 32px;
}

.rx-hero-arrow--next {
    right: 32px;
}

.rx-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rx-hero-dot {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
    transition: background 0.25s var(--rx-ease), width 0.25s var(--rx-ease);
}

.rx-hero-dot.is-active {
    background: var(--rx-lime);
    width: 52px;
}

.rx-hero-pause {
    width: 30px;
    height: 30px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(18, 18, 18, 0.35);
    color: var(--rx-white);
    padding: 0;
    cursor: pointer;
    transition: background 0.25s var(--rx-ease), border-color 0.25s var(--rx-ease), color 0.25s var(--rx-ease);
}

.rx-hero-pause:hover,
.rx-hero-pause[aria-pressed="true"] {
    background: var(--rx-lime);
    border-color: var(--rx-lime);
    color: var(--rx-dark);
}

@media (max-width: 991.98px) {
    .rx-hero {
        min-height: 560px;
        height: auto;
        max-height: none;
    }

    .rx-slide-inner {
        padding: 90px 0 110px;
    }

    .rx-hero-arrow {
        display: none;
    }

    .rx-slide-desc {
        font-size: 17px;
    }
}

/* -------------------------------------------------------- SECTION HEADER -- */

.rx-section {
    padding: 100px 0;
}

.rx-section--dark {
    background: var(--rx-dark);
    color: var(--rx-white);
}

.rx-section--dark h2,
.rx-section--dark h3,
.rx-section--dark h4 {
    color: var(--rx-white);
}

.rx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.rx-section-title {
    font-family: var(--rx-font-head);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.14;
    text-transform: uppercase;
    color: var(--rx-dark);
    margin: 0;
}

.rx-section--dark .rx-section-title {
    color: var(--rx-white);
}

.rx-section-title--sm {
    font-size: clamp(26px, 3vw, 34px);
}

.rx-section-lead {
    font-size: 18px;
    color: var(--rx-gray);
    margin: 14px 0 0;
    max-width: 640px;
}

.rx-section--dark .rx-section-lead {
    color: var(--rx-gray-2);
}

/* --------------------------------------------------------------- EVENTS -- */

.rx-events {
    position: relative;
    background: var(--rx-dark);
    overflow: hidden;
}

.rx-events::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 233, 45, 0.16) 0%, rgba(195, 233, 45, 0) 70%);
    pointer-events: none;
}

.rx-event-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1.35fr 0.85fr;
    background: var(--rx-dark-2);
    border-radius: var(--rx-radius-lg);
    overflow: hidden;
    min-height: 280px;
    transition: transform 0.35s var(--rx-ease), box-shadow 0.35s var(--rx-ease);
}

.rx-event-card + .rx-event-card {
    margin-top: 30px;
}

.rx-event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.45);
}

.rx-event-info {
    position: relative;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(195, 233, 45, 0.07) 0%, rgba(195, 233, 45, 0) 55%),
        var(--rx-dark-2);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.rx-event-cat {
    align-self: flex-start;
    font-family: var(--rx-font-head);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rx-dark);
    background: var(--rx-lime);
    padding: 5px 14px;
    border-radius: 50px;
}

.rx-event-title {
    font-family: var(--rx-font-head);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--rx-white);
    margin: 0;
}

.rx-event-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rx-event-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--rx-gray-2);
}

.rx-event-meta li svg {
    flex: 0 0 auto;
    color: var(--rx-lime);
}

.rx-event-media {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.rx-event-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--rx-ease);
}

.rx-event-card:hover .rx-event-media img {
    transform: scale(1.07);
}

.rx-event-ticket {
    background: var(--rx-white);
    color: var(--rx-dark);
    padding: 34px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.rx-ticket-label {
    font-family: var(--rx-font-head);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rx-gray);
}

.rx-ticket-price {
    font-family: var(--rx-font-head);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    color: var(--rx-dark);
}

.rx-ticket-price small {
    display: block;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--rx-gray);
    margin-top: 6px;
}

.rx-ticket-price--free {
    font-size: 34px;
    color: var(--rx-dark);
}

.rx-event-ticket .rx-btn {
    margin-top: 16px;
    width: 100%;
}

.rx-events-footer {
    margin-top: 46px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .rx-event-card {
        grid-template-columns: 1fr 1fr;
    }

    .rx-event-media {
        min-height: 230px;
    }

    .rx-event-ticket {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 20px;
        padding: 24px 26px;
    }

    .rx-ticket-price small {
        display: inline;
        margin-top: 0;
    }

    .rx-event-ticket .rx-btn {
        margin-top: 0;
        width: auto;
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .rx-event-card {
        grid-template-columns: 1fr;
    }

    .rx-event-media {
        min-height: 210px;
        order: -1;
    }

    .rx-event-ticket {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .rx-event-ticket .rx-btn {
        width: 100%;
    }
}

/* -------------------------------------------------------- EVENT DETAIL -- */

/* Fil d'Ariane (sur fond sombre du héro) */
.rx-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.rx-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rx-gray-2);
}

.rx-breadcrumb li + li::before {
    content: "/";
    color: rgba(255, 255, 255, 0.32);
}

.rx-breadcrumb li[aria-current="page"] {
    color: var(--rx-white);
}

.rx-breadcrumb a {
    color: var(--rx-gray-2);
}

.rx-breadcrumb a:hover {
    color: var(--rx-lime);
}

/* Alertes / flashes en tête de contenu clair */
.rx-alerts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 34px;
}

/* Héro événement */
.rx-event-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 470px;
    padding: 46px 0 72px;
    background-color: var(--rx-dark);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--rx-white);
    overflow: hidden;
}

.rx-event-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 84% 22%, rgba(195, 233, 45, 0.20) 0%, transparent 46%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.74) 0%, rgba(18, 18, 18, 0.93) 100%);
}

.rx-event-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 44px;
    align-items: end;
    margin-top: 44px;
}

.rx-event-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.rx-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rx-font-head);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 7px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--rx-border-dark);
    color: var(--rx-white);
}

.rx-badge--open {
    background: var(--rx-lime);
    border-color: var(--rx-lime);
    color: var(--rx-dark);
}

.rx-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rx-dark);
}

.rx-event-hero-title {
    font-family: var(--rx-font-head);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--rx-white);
    margin: 0 0 24px;
}

.rx-event-hero-meta {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
}

.rx-event-hero-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88);
}

.rx-event-hero-meta li svg {
    flex: 0 0 auto;
    color: var(--rx-lime);
}

.rx-event-hero-desc {
    max-width: 640px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

/* Carte tarif du héro */
.rx-price-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--rx-border-dark);
    border-radius: var(--rx-radius-lg);
    padding: 30px 28px;
    backdrop-filter: blur(10px);
}

.rx-price-card-label {
    display: block;
    font-family: var(--rx-font-head);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rx-gray-2);
}

.rx-price-card-value {
    display: block;
    font-family: var(--rx-font-head);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--rx-white);
    margin-top: 10px;
}

.rx-price-card-value--free {
    color: var(--rx-lime);
}

.rx-price-card-from {
    display: block;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--rx-gray-2);
    margin-bottom: 4px;
}

.rx-price-card-value small {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--rx-gray-2);
}

.rx-price-card .rx-btn {
    margin-top: 24px;
}

/* Panneaux de contenu */
.rx-section--soft {
    background: var(--rx-surface);
}

.rx-detail-block + .rx-detail-block {
    margin-top: 80px;
}

.rx-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    align-items: start;
}

.rx-info-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rx-panel {
    background: var(--rx-white);
    border: 1px solid var(--rx-border);
    border-radius: var(--rx-radius-lg);
    padding: 34px;
    box-shadow: 0 14px 40px rgba(18, 18, 18, 0.05);
}

.rx-panel--dark {
    background: var(--rx-dark);
    border-color: transparent;
    box-shadow: none;
    color: var(--rx-white);
}

.rx-card-title {
    font-family: var(--rx-font-head);
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rx-dark);
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rx-border);
}

.rx-card-title--sm {
    font-size: 19px;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.rx-panel--dark .rx-card-title {
    color: var(--rx-white);
    border-bottom-color: var(--rx-border-dark);
}

.rx-panel-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: var(--rx-gray);
}

/* Fiche technique */
.rx-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rx-spec-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--rx-border);
}

.rx-spec-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rx-spec-item:first-child {
    padding-top: 0;
}

.rx-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rx-surface);
    color: var(--rx-dark);
}

.rx-spec-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    color: var(--rx-gray);
}

.rx-spec-value {
    font-family: var(--rx-font-head);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rx-dark);
    text-align: right;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Contact / support */
.rx-support-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rx-gray-2);
}

.rx-support-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
}

.rx-support-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rx-support-list li svg {
    flex: 0 0 auto;
    color: var(--rx-lime);
}

.rx-support-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sélection de la course */
.rx-select-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 40px;
}

.rx-block-head {
    margin-bottom: 34px;
}

.rx-block-head .rx-section-title {
    margin-top: 6px;
}

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

.rx-course-card {
    --rx-course-accent: var(--rx-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    background: var(--rx-white);
    border: 2px solid var(--rx-border);
    border-radius: var(--rx-radius-lg);
    cursor: pointer;
    transition: transform 0.3s var(--rx-ease), box-shadow 0.3s var(--rx-ease),
        border-color 0.3s var(--rx-ease);
}

.rx-course-card:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 18, 18, 0.22);
    box-shadow: 0 16px 34px rgba(18, 18, 18, 0.10);
}

.rx-course-card.is-selected {
    border-color: var(--rx-course-accent);
    box-shadow: 0 18px 38px rgba(18, 18, 18, 0.14);
}

.rx-course-card.is-disabled {
    background: var(--rx-surface);
    opacity: 0.68;
    cursor: not-allowed;
    pointer-events: none;
}

.rx-course-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rx-course-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rx-surface);
    color: var(--rx-dark);
}

.rx-course-card.is-selected .rx-course-icon {
    background: var(--rx-lime);
}

.rx-course-head {
    flex: 1 1 auto;
    min-width: 0;
}

.rx-course-title {
    font-family: var(--rx-font-head);
    font-size: 19px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rx-dark);
    margin: 4px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rx-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.rx-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--rx-font-head);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 11px;
    border-radius: 50px;
}

.rx-tag--warn {
    background: var(--rx-lime-soft);
    color: var(--rx-dark);
}

.rx-tag--muted {
    background: var(--rx-surface);
    border: 1px solid var(--rx-border);
    color: var(--rx-gray);
}

.rx-course-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--rx-lime);
    color: var(--rx-dark);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s var(--rx-ease), transform 0.25s var(--rx-ease);
}

.rx-course-card.is-selected .rx-course-check {
    opacity: 1;
    transform: scale(1);
}

.rx-course-meta {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--rx-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 14px;
    color: var(--rx-gray);
}

.rx-course-meta li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rx-course-meta li svg {
    flex: 0 0 auto;
    color: var(--rx-dark);
    opacity: 0.7;
}

.rx-course-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.rx-course-tariff {
    font-family: var(--rx-font-head);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rx-gray);
}

.rx-course-price {
    font-family: var(--rx-font-head);
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    color: var(--rx-dark);
}

.rx-course-price small {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--rx-gray);
}

/* Panneau d'inscription (colonne droite, collant) */
.rx-booking {
    position: sticky;
    top: calc(var(--rx-header-h) + 20px);
    background: var(--rx-white);
    border: 1px solid var(--rx-border);
    border-radius: var(--rx-radius-lg);
    overflow: hidden;
    box-shadow: var(--rx-shadow);
}

.rx-booking-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: var(--rx-dark);
    color: var(--rx-white);
    font-family: var(--rx-font-head);
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rx-booking-head svg {
    flex: 0 0 auto;
    color: var(--rx-lime);
}

.rx-booking-body {
    padding: 26px 24px;
}

.rx-booking-empty {
    text-align: center;
    padding: 10px 0 4px;
}

.rx-booking-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--rx-surface);
    color: var(--rx-gray);
    margin-bottom: 16px;
}

.rx-booking-empty h4 {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rx-dark);
    margin: 0 0 8px;
}

.rx-booking-empty p {
    margin: 0;
    font-size: 15px;
    color: var(--rx-gray);
}

.rx-booking-summary {
    --rx-course-accent: var(--rx-lime);
    background: var(--rx-surface);
    border-left: 4px solid var(--rx-course-accent);
    border-radius: var(--rx-radius);
    padding: 18px;
    margin-bottom: 22px;
}

.rx-booking-summary-label {
    display: block;
    font-family: var(--rx-font-head);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rx-gray);
    margin-bottom: 6px;
}

#summary-course-name {
    display: block;
    font-family: var(--rx-font-head);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--rx-dark);
    margin: 0 0 14px;
}

.rx-booking-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--rx-gray);
}

.rx-booking-rows li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rx-booking-rows li svg {
    flex: 0 0 auto;
    color: var(--rx-dark);
    opacity: 0.7;
}

.rx-booking-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rx-border);
}

.rx-booking-total span {
    font-family: var(--rx-font-head);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rx-gray);
}

.rx-booking-total-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rx-booking-total-value strong {
    font-family: var(--rx-font-head);
    font-size: 24px;
    font-weight: 600;
    color: var(--rx-dark);
}

.rx-booking-total-value small {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--rx-gray);
}

.rx-booking .rx-field {
    margin-bottom: 4px;
}

.rx-booking-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.rx-booking-auth h4 {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rx-dark);
    margin: 0 0 6px;
}

.rx-booking-auth p {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--rx-gray);
}

/* Événements similaires */
.rx-section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rx-section-head--center .rx-section-lead {
    margin-left: auto;
    margin-right: auto;
}

.rx-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.rx-similar-card {
    display: flex;
    flex-direction: column;
    background: var(--rx-white);
    border: 1px solid var(--rx-border);
    border-radius: var(--rx-radius-lg);
    overflow: hidden;
    transition: transform 0.35s var(--rx-ease), box-shadow 0.35s var(--rx-ease);
}

.rx-similar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rx-shadow);
}

.rx-similar-media {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.rx-similar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--rx-ease);
}

.rx-similar-card:hover .rx-similar-media img {
    transform: scale(1.07);
}

.rx-similar-price {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    background: var(--rx-lime);
    color: var(--rx-dark);
    font-family: var(--rx-font-head);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 7px 14px;
    border-radius: var(--rx-radius);
}

.rx-similar-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 26px 24px;
}

.rx-similar-title {
    font-family: var(--rx-font-head);
    font-size: 21px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--rx-dark);
    margin: 0 0 16px;
}

.rx-similar-meta {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 15px;
    color: var(--rx-gray);
}

.rx-similar-meta li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.rx-similar-meta li svg {
    flex: 0 0 auto;
    color: var(--rx-dark);
    opacity: 0.7;
}

.rx-similar-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--rx-border);
}

.rx-similar-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--rx-font-head);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rx-gray);
}

.rx-similar-tag svg {
    flex: 0 0 auto;
    color: var(--rx-dark);
}

@media (max-width: 1199.98px) {
    .rx-select-grid,
    .rx-info-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 30px;
    }
}

@media (max-width: 991.98px) {
    .rx-event-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }

    .rx-price-card {
        max-width: 420px;
    }

    .rx-info-grid {
        grid-template-columns: 1fr;
    }

    .rx-select-grid {
        grid-template-columns: 1fr;
    }

    .rx-booking {
        position: static;
    }

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

@media (max-width: 575.98px) {
    .rx-event-hero {
        min-height: 0;
        padding: 34px 0 56px;
    }

    .rx-event-hero-grid {
        margin-top: 32px;
    }

    .rx-course-grid {
        grid-template-columns: 1fr;
    }

    .rx-panel {
        padding: 26px 22px;
    }

    .rx-similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------------ CTA -- */

.rx-cta {
    position: relative;
    overflow: hidden;
    background: var(--rx-dark);
    background-size: cover;
    background-position: center;
}

.rx-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.92) 0%, rgba(18, 18, 18, 0.75) 55%, rgba(18, 18, 18, 0.45) 100%);
}

.rx-cta-inner {
    position: relative;
    z-index: 1;
    padding: 110px 0;
    max-width: 760px;
}

.rx-cta-title {
    font-family: var(--rx-font-head);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
    color: var(--rx-white);
    margin: 0 0 18px;
}

.rx-cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 32px;
    max-width: 620px;
}

.rx-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* --------------------------------------------------------------- FOOTER -- */

.rx-footer {
    background: var(--rx-dark);
    color: var(--rx-gray-2);
    padding-top: 78px;
}

.rx-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 44px;
    padding-bottom: 60px;
}

.rx-footer-brand img {
    height: 54px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 22px;
}

.rx-footer-text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--rx-gray-2);
    margin-bottom: 22px;
    max-width: 340px;
}

.rx-footer-social {
    display: flex;
    gap: 10px;
}

.rx-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--rx-border-dark);
    color: var(--rx-white);
    transition: background 0.25s var(--rx-ease), border-color 0.25s var(--rx-ease), color 0.25s var(--rx-ease);
}

.rx-footer-social a:hover {
    background: var(--rx-lime);
    border-color: var(--rx-lime);
    color: var(--rx-dark);
}

.rx-footer-title {
    font-family: var(--rx-font-head);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rx-white);
    margin-bottom: 24px;
}

.rx-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.rx-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    color: var(--rx-gray-2);
}

.rx-footer-links a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--rx-lime);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s var(--rx-ease), transform 0.25s var(--rx-ease);
}

.rx-footer-links a:hover {
    color: var(--rx-lime);
}

.rx-footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.rx-footer-contact {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rx-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 16px;
    color: var(--rx-gray-2);
}

.rx-footer-contact li svg {
    flex: 0 0 auto;
    color: var(--rx-lime);
    margin-top: 3px;
}

.rx-footer-contact a {
    color: var(--rx-gray-2);
}

.rx-footer-contact a:hover {
    color: var(--rx-lime);
}

.rx-newsletter {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rx-border-dark);
    border-radius: var(--rx-radius);
    overflow: hidden;
}

.rx-newsletter input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--rx-white);
    font-family: var(--rx-font-body);
    font-size: 15px;
    padding: 14px 16px;
}

.rx-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.rx-newsletter input:focus {
    outline: none;
    box-shadow: none;
}

.rx-newsletter button {
    flex: 0 0 auto;
    width: 54px;
    border: 0;
    background: var(--rx-lime);
    color: var(--rx-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s var(--rx-ease);
}

.rx-newsletter button:hover {
    background: var(--rx-white);
}

.rx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--rx-gray-2);
}

.rx-footer-legal {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.rx-footer-legal a:hover {
    color: var(--rx-lime);
}

@media (max-width: 1199.98px) {
    .rx-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px;
    }
}

@media (max-width: 575.98px) {
    .rx-footer-grid {
        grid-template-columns: 1fr;
    }

    .rx-footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ----------------------------------------- FORMULAIRES / INSCRIPTION AUTH -- */

.rx-flash {
    display: block;
    padding-top: 26px;
}

.rx-flash .rx-alert + .rx-alert {
    margin-top: 12px;
}

.rx-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-left: 4px solid var(--rx-dark);
    border-radius: var(--rx-radius);
    background: var(--rx-surface);
    color: var(--rx-dark);
    font-size: 15px;
    line-height: 1.5;
}

.rx-alert-icon {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 2px;
}

.rx-alert-text {
    flex: 1 1 auto;
    min-width: 0;
}

.rx-alert--success {
    background: rgba(195, 233, 45, 0.24);
    border-left-color: var(--rx-lime-hover);
}

.rx-alert--error,
.rx-alert--danger {
    background: var(--rx-danger-soft);
    border-left-color: var(--rx-danger);
    color: var(--rx-danger);
}

.rx-auth {
    background: var(--rx-surface);
}

.rx-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: stretch;
}

/* Panneau visuel */
.rx-auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 640px;
    padding: 48px;
    border-radius: var(--rx-radius-lg);
    background: var(--rx-dark) center / cover no-repeat;
    box-shadow: var(--rx-shadow);
}

.rx-auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.32) 0%, rgba(18, 18, 18, 0.93) 76%);
}

.rx-auth-visual-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.rx-auth-visual-title {
    font-family: var(--rx-font-head);
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--rx-white);
    margin: 0 0 28px;
}

.rx-auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.rx-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.rx-auth-points li > span:first-child {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--rx-lime);
    margin-top: 3px;
}

.rx-auth-point-title {
    display: block;
    font-weight: 500;
    color: var(--rx-white);
}

.rx-auth-point-desc {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

/* Variante sans photo (fond sombre + halo lime) */
.rx-auth-visual--dark {
    align-items: center;
    background-color: var(--rx-dark);
    background-image: radial-gradient(circle at 18% 18%, rgba(195, 233, 45, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 88% 88%, rgba(195, 233, 45, 0.10) 0%, transparent 50%);
}

.rx-auth-visual--dark::before {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.10) 0%, rgba(18, 18, 18, 0.72) 100%);
}

/* Panneau formulaire */
.rx-auth-panel {
    align-self: center;
    background: var(--rx-white);
    border-radius: var(--rx-radius-lg);
    box-shadow: var(--rx-shadow);
    padding: clamp(26px, 4vw, 56px);
}

.rx-auth-head {
    margin-bottom: 32px;
}

.rx-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--rx-font-head);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rx-dark);
    background: var(--rx-lime);
    border-radius: 50px;
    padding: 7px 16px;
    margin-bottom: 18px;
}

.rx-auth-title {
    font-family: var(--rx-font-head);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.14;
    text-transform: uppercase;
    color: var(--rx-dark);
    margin: 0 0 12px;
}

.rx-auth-lead {
    margin: 0;
    max-width: 52ch;
    font-size: 17px;
    color: var(--rx-gray);
}

/* Structure du formulaire */
.rx-form-group {
    border: 0;
    margin: 0 0 36px;
    padding: 0;
    min-width: 0;
}

.rx-form-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0;
    margin-bottom: 22px;
    font-family: var(--rx-font-head);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rx-dark);
}

.rx-form-legend::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--rx-border);
}

.rx-form-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rx-dark);
    color: var(--rx-lime);
    font-size: 13px;
    letter-spacing: 0.04em;
}

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

.rx-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.rx-field--full {
    grid-column: 1 / -1;
}

.rx-label {
    font-family: var(--rx-font-head);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rx-dark);
}

.rx-required {
    color: var(--rx-danger);
}

.rx-input {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-family: var(--rx-font-body);
    font-size: 16px;
    color: var(--rx-dark);
    background: var(--rx-white);
    border: 1px solid rgba(18, 18, 18, 0.16);
    border-radius: var(--rx-radius);
    transition: border-color 0.25s var(--rx-ease), box-shadow 0.25s var(--rx-ease), background 0.25s var(--rx-ease);
}

.rx-input::placeholder {
    color: rgba(94, 98, 103, 0.65);
}

.rx-input:hover {
    border-color: rgba(18, 18, 18, 0.32);
}

.rx-input:focus {
    border-color: var(--rx-dark);
    box-shadow: 0 0 0 3px var(--rx-lime-soft);
}

.rx-input.is-invalid {
    border-color: var(--rx-danger);
    background: rgba(217, 48, 37, 0.04);
}

.rx-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.16);
}

.rx-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-color: var(--rx-white);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23121212' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    cursor: pointer;
}

.rx-select:invalid,
.rx-select option[value=""] {
    color: rgba(94, 98, 103, 0.65);
}

.rx-form-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--rx-gray);
}

.rx-form-error {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--rx-danger);
    background: var(--rx-danger-soft);
    border-left: 3px solid var(--rx-danger);
    border-radius: var(--rx-radius);
    padding: 8px 10px;
}

.rx-form-error.d-none {
    display: none;
}

/* Mot de passe */
.rx-pw {
    position: relative;
}

.rx-pw .rx-input {
    padding-right: 54px;
}

.rx-pw-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rx-gray);
    cursor: pointer;
    transition: color 0.25s var(--rx-ease);
}

.rx-pw-toggle:hover {
    color: var(--rx-dark);
}

.rx-pw-icon {
    display: inline-flex;
}

.rx-pw-icon[hidden] {
    display: none;
}

/* Récapitulatif d'erreurs (accessibilité) */
.rx-form-summary {
    margin-bottom: 26px;
    padding: 16px 18px;
    border-left: 4px solid var(--rx-danger);
    border-radius: var(--rx-radius);
    background: var(--rx-danger-soft);
    color: var(--rx-danger);
    font-size: 15px;
}

.rx-form-summary[hidden] {
    display: none;
}

.rx-form-summary:focus-visible {
    outline: 3px solid var(--rx-lime);
    outline-offset: 3px;
}

.rx-form-summary-title {
    margin: 0;
    font-family: var(--rx-font-head);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rx-danger);
}

.rx-form-summary ul {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.rx-form-summary a {
    color: var(--rx-danger);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rx-form-summary a:hover {
    color: var(--rx-dark);
}

.rx-form-actions {
    margin-top: 32px;
}

/* Case à cocher (CGU) */
.rx-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.rx-check input[type="checkbox"] {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--rx-lime);
    cursor: pointer;
}

.rx-check input[type="checkbox"].is-invalid {
    outline: 2px solid var(--rx-danger);
    outline-offset: 2px;
}

.rx-check label {
    font-size: 15px;
    line-height: 1.5;
    color: var(--rx-gray);
    cursor: pointer;
}

.rx-form-foot {
    margin: 20px 0 0;
    text-align: center;
    font-size: 15px;
    color: var(--rx-gray);
}

.rx-form-foot a {
    color: var(--rx-dark);
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 4px;
    text-decoration: underline;
    text-decoration-color: var(--rx-lime);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rx-form-foot a:hover {
    background: var(--rx-lime);
    text-decoration-color: transparent;
}

/* Ligne d'options (case à cocher + lien) */
.rx-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

/* Lien souligné lime (mot de passe oublié, etc.) */
.rx-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--rx-dark);
    padding: 1px 4px;
    border-radius: 4px;
    text-decoration: underline;
    text-decoration-color: var(--rx-lime);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rx-link:hover {
    background: var(--rx-lime);
    text-decoration-color: transparent;
}

/* Alerte d'erreur au-dessus du titre du panneau */
.rx-auth-panel .rx-alert + .rx-auth-head {
    margin-top: 22px;
}

/* Sous le titre du panneau visuel */
.rx-auth-visual .rx-section-lead {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.78);
}

.rx-auth-visual .rx-auth-points {
    margin-top: 30px;
}

@media (max-width: 1199.98px) {
    .rx-auth-grid {
        gap: 34px;
    }
}

@media (max-width: 991.98px) {
    .rx-auth {
        padding: 64px 0;
    }

    .rx-auth-grid {
        grid-template-columns: 1fr;
    }

    .rx-auth-visual {
        min-height: 420px;
        padding: 36px;
    }

    .rx-auth-panel {
        align-self: stretch;
    }
}

@media (max-width: 575.98px) {
    .rx-auth-visual {
        min-height: 320px;
        padding: 26px;
    }

    .rx-auth-panel {
        padding: 26px 20px;
    }

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

/* ------------------------------------------------------- SCROLL TO TOP -- */

.rx-scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 0;
    background: var(--rx-lime);
    color: var(--rx-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(18, 18, 18, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s var(--rx-ease), transform 0.3s var(--rx-ease), visibility 0.3s var(--rx-ease), background 0.25s var(--rx-ease);
    z-index: 1000;
}

.rx-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rx-scroll-top:hover {
    background: var(--rx-white);
}

/* ----------------------------------------------- ACCESSIBILITÉ / MOTION -- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .rx-slide-media {
        transform: none !important;
    }

    .rx-reveal {
        opacity: 1;
        transform: none;
    }
}
