:root {
    --rs-navy: #17324d;
    --rs-orange: #ef7d22;
    --rs-cream: #fff8ee;
    --rs-aqua: #eef8f7;
    --rs-border: rgba(23, 50, 77, 0.14);
    --rs-shadow: 0 10px 30px rgba(20, 38, 58, 0.08);
    --rs-radius: 14px;
    --rs-transition: 180ms ease;
}

/* =========================================================
   0.5.0 — PAGE D'ACCUEIL GÉNÉRÉE PAR L'EXTENSION
   ========================================================= */
.reparsoulatge-accueil-active.rs-generated-home-active .wp-site-blocks main,
.reparsoulatge-accueil-active.rs-generated-home-active .wp-site-blocks .wp-block-post-content,
.reparsoulatge-accueil-active.rs-generated-home-active .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.reparsoulatge-accueil-active .rs-home {
    --rs-home-width: 1120px;
    width: min(var(--rs-home-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 54px;
    color: var(--rs-navy);
}

.reparsoulatge-accueil-active .rs-home *,
.reparsoulatge-accueil-active .rs-home *::before,
.reparsoulatge-accueil-active .rs-home *::after {
    box-sizing: border-box;
}

.reparsoulatge-accueil-active .rs-home__hero {
    display: grid;
    place-items: center;
    padding: 6px 0 28px;
}

.reparsoulatge-accueil-active .rs-home__hero-logo {
    width: min(650px, 92vw);
    margin: 0 auto;
    text-align: center;
}

.reparsoulatge-accueil-active .rs-home__hero-logo-image,
.reparsoulatge-accueil-active .rs-home__hero-logo .rs-site-logo__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.reparsoulatge-accueil-active .rs-home__hero-logo .rs-site-logo {
    display: block;
}

.reparsoulatge-accueil-active .rs-home-panel {
    border: 1px solid var(--rs-border);
    border-radius: 16px;
}

.reparsoulatge-accueil-active .rs-home-panel--cream {
    background: var(--rs-cream);
    border-color: rgba(239, 125, 34, .28);
}

.reparsoulatge-accueil-active .rs-home-panel--aqua {
    background: var(--rs-aqua);
}

.reparsoulatge-accueil-active .rs-home__intro {
    padding: 58px 34px 46px;
    text-align: center;
}

.reparsoulatge-accueil-active .rs-home__intro h1 {
    margin: 0 0 28px;
    color: #202020;
    font-size: clamp(2rem, 4vw, 3.05rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.reparsoulatge-accueil-active .rs-home__intro p,
.reparsoulatge-accueil-active .rs-home__section-heading p,
.reparsoulatge-accueil-active .rs-home__next > p {
    margin: 0;
    color: #50657a;
}

.reparsoulatge-accueil-active .rs-home-link,
.reparsoulatge-accueil-active .rs-home__small a {
    display: inline-block;
    margin-top: 22px;
    color: var(--rs-orange);
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--rs-transition), color var(--rs-transition);
}

.reparsoulatge-accueil-active .rs-home-link:hover,
.reparsoulatge-accueil-active .rs-home-link:focus-visible,
.reparsoulatge-accueil-active .rs-home__small a:hover,
.reparsoulatge-accueil-active .rs-home__small a:focus-visible {
    color: #d86512;
    transform: translateX(3px);
}

.reparsoulatge-accueil-active .rs-home__values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.reparsoulatge-accueil-active .rs-home-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 22px 25px;
    border: 1px solid var(--rs-border);
    border-radius: 14px;
    color: var(--rs-navy);
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.reparsoulatge-accueil-active .rs-home-card--aqua {
    background: var(--rs-aqua);
}

.reparsoulatge-accueil-active .rs-home-card--cream {
    background: var(--rs-cream);
    border-color: rgba(239, 125, 34, .26);
}

.reparsoulatge-accueil-active .rs-home-card:hover,
.reparsoulatge-accueil-active .rs-home-card:focus-visible {
    transform: translateY(-6px) scale(1.012);
    border-color: rgba(239, 125, 34, .52);
    box-shadow: 0 14px 30px rgba(24, 50, 77, .10);
    outline: none;
}

.reparsoulatge-accueil-active .rs-home-card__visual {
    height: 88px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}

.reparsoulatge-accueil-active .rs-home-card__image {
    display: block;
    width: auto;
    max-width: 132px;
    max-height: 86px;
    object-fit: contain;
}

.reparsoulatge-accueil-active .rs-home-card__fallback {
    font-size: 56px;
    line-height: 1;
}

.reparsoulatge-accueil-active .rs-home-card__title {
    display: block;
    margin-top: 3px;
    font-size: 1.12rem;
    line-height: 1.25;
}

.reparsoulatge-accueil-active .rs-home-card__text {
    display: block;
    margin-top: 6px;
    color: #50657a;
    font-size: .91rem;
    line-height: 1.35;
}

.reparsoulatge-accueil-active .rs-home__section {
    margin-top: 48px;
}

.reparsoulatge-accueil-active .rs-home__section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.reparsoulatge-accueil-active .rs-home__section-heading h2,
.reparsoulatge-accueil-active .rs-home__next h2 {
    margin: 0 0 16px;
    color: #202020;
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.reparsoulatge-accueil-active .rs-home__domain-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 28px;
}

.reparsoulatge-accueil-active .rs-home__domain-grid .rs-home-card {
    min-height: 206px;
}

.reparsoulatge-accueil-active .rs-home__domain-grid .rs-home-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.reparsoulatge-accueil-active .rs-home__next {
    padding: 34px 42px 32px;
    text-align: center;
}

.reparsoulatge-accueil-active .rs-home__next-visual {
    min-height: 120px;
    display: grid;
    place-items: center;
    margin: 2px auto 16px;
}

.reparsoulatge-accueil-active .rs-home__next-image {
    width: auto;
    max-width: 210px;
    max-height: 120px;
    object-fit: contain;
}

.reparsoulatge-accueil-active .rs-home__event-meta {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 26px 0;
}

.reparsoulatge-accueil-active .rs-home__event-meta > div {
    display: grid;
    gap: 3px;
    min-width: 150px;
}

.reparsoulatge-accueil-active .rs-home__event-meta strong {
    color: var(--rs-orange);
    font-size: .82rem;
}

.reparsoulatge-accueil-active .rs-home__event-meta span,
.reparsoulatge-accueil-active .rs-home__small {
    color: #50657a;
    font-size: .9rem;
}

.reparsoulatge-accueil-active .rs-home__small a {
    margin-top: 0;
}

.reparsoulatge-accueil-active .rs-home__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px;
}

.reparsoulatge-accueil-active .rs-home__steps article {
    position: relative;
    min-width: 0;
}

.reparsoulatge-accueil-active .rs-home__step-number {
    display: block;
    margin-bottom: 18px;
    color: var(--rs-orange);
    font-size: .78rem;
    font-weight: 800;
}

.reparsoulatge-accueil-active .rs-home__step-arrow {
    position: absolute;
    top: 13px;
    left: -29px;
    color: var(--rs-orange);
    font-size: 1.2rem;
}

.reparsoulatge-accueil-active .rs-home__steps h3 {
    margin: 0 0 10px;
    color: var(--rs-navy);
    font-size: .93rem;
    font-weight: 800;
}

.reparsoulatge-accueil-active .rs-home__steps p {
    margin: 0;
    color: #50657a;
    font-size: .9rem;
    line-height: 1.45;
}

.reparsoulatge-accueil-active .rs-home__before-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.reparsoulatge-accueil-active .rs-home__before-grid a {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: start;
    color: var(--rs-navy);
    text-decoration: none;
    transition: transform var(--rs-transition);
}

.reparsoulatge-accueil-active .rs-home__before-grid a:hover,
.reparsoulatge-accueil-active .rs-home__before-grid a:focus-visible {
    transform: translateY(-3px);
    outline: none;
}

.reparsoulatge-accueil-active .rs-home__before-icon {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    font-size: 32px;
}

.reparsoulatge-accueil-active .rs-home__before-grid strong {
    font-size: .9rem;
}

.reparsoulatge-accueil-active .rs-home__before-grid a > span:last-child {
    margin-top: 8px;
    color: #50657a;
    font-size: .88rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .reparsoulatge-accueil-active .rs-home__values,
    .reparsoulatge-accueil-active .rs-home__domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reparsoulatge-accueil-active .rs-home__domain-grid .rs-home-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }

    .reparsoulatge-accueil-active .rs-home__domain-grid .rs-home-card:last-child:nth-child(2n + 1) {
        grid-column: 1 / -1;
        width: min(100%, 520px);
        justify-self: center;
    }

    .reparsoulatge-accueil-active .rs-home__steps,
    .reparsoulatge-accueil-active .rs-home__before-grid {
        gap: 26px;
    }
}

@media (max-width: 680px) {
    .reparsoulatge-accueil-active .rs-home {
        width: min(100% - 22px, var(--rs-home-width));
        padding-bottom: 34px;
    }

    .reparsoulatge-accueil-active .rs-home__hero {
        padding-bottom: 18px;
    }

    .reparsoulatge-accueil-active .rs-home__intro {
        padding: 34px 18px 30px;
    }

    .reparsoulatge-accueil-active .rs-home__values,
    .reparsoulatge-accueil-active .rs-home__domain-grid,
    .reparsoulatge-accueil-active .rs-home__steps,
    .reparsoulatge-accueil-active .rs-home__before-grid {
        grid-template-columns: 1fr;
    }

    .reparsoulatge-accueil-active .rs-home__domain-grid .rs-home-card:last-child:nth-child(2n + 1) {
        grid-column: auto;
        width: 100%;
    }

    .reparsoulatge-accueil-active .rs-home__section {
        margin-top: 38px;
    }

    .reparsoulatge-accueil-active .rs-home__next {
        padding: 30px 18px;
    }

    .reparsoulatge-accueil-active .rs-home__event-meta {
        flex-direction: column;
        gap: 15px;
    }

    .reparsoulatge-accueil-active .rs-home__step-arrow {
        display: none;
    }
}

/* Information d'adhésion, intégrée à la présentation de l'accueil. */
.reparsoulatge-accueil-active .rs-home__intro .rs-home__membership {
    max-width: 740px;
    margin: 22px auto 0;
    padding: 15px 20px;
    border: 1px solid #e4dac6;
    border-radius: 12px;
    background: #fffdf8;
    color: #17324d;
    line-height: 1.6;
}
.reparsoulatge-accueil-active .rs-home__membership a {
    color: #a94f09;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.reparsoulatge-accueil-active .rs-home__membership a:hover,
.reparsoulatge-accueil-active .rs-home__membership a:focus-visible {
    color: #743900;
}
