/* =========================================================
   RESOCLUB
   HEADER + FOOTER
   Refonte 2026
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --rc-violet: #5c2d82;
    --rc-violet-dark: #3c1c57;

    --rc-turquoise: #35a99a;
    --rc-turquoise-dark: #298f83;

    --rc-ink: #25212a;
    --rc-muted: #6f6975;

    --rc-border: #e9e4ed;

    --rc-surface: #f8f6fa;
    --rc-white: #ffffff;

    --rc-container: 1240px;

    --rc-shadow:
        0 22px 55px
        rgba(56, 35, 68, 0.13);

}


/* =========================================================
   BASE
========================================================= */

.resoclub-container {

    width:
        min(
            calc(100% - 2rem),
            var(--rc-container)
        );

    margin-inline: auto;

}


/*
 * Empêche certains styles WordPress / Divi
 * de casser les dimensions du header.
 */

.resoclub-site-header *,
.resoclub-site-footer * {

    box-sizing: border-box;

}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

.resoclub-skip-link {

    position: fixed;

    top: 0.75rem;
    left: 0.75rem;

    z-index: 99999;

    padding:
        0.75rem
        1rem;

    color:
        var(--rc-white);

    background:
        var(--rc-violet);

    border-radius:
        8px;

    text-decoration: none;

    transform:
        translateY(-180%);

    transition:
        transform
        0.2s ease;

}


.resoclub-skip-link:focus {

    transform:
        translateY(0);

}


/* =========================================================
   HEADER GLOBAL
========================================================= */

.resoclub-site-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        var(--rc-white);

    box-shadow:
        0 1px 0
        rgba(40, 30, 50, 0.08);

}


/*
 * Lorsque connecté à WordPress,
 * tient compte de la barre d'administration.
 */

body.admin-bar
.resoclub-site-header {

    top: 32px;

}


/* =========================================================
   BANDEAU QUESTIONNAIRE
========================================================= */

.resoclub-questionnaire-banner {
    color: var(--rc-white);
    background: var(--rc-violet);
}

.resoclub-questionnaire-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    min-height: 52px;
    padding-block: 0.65rem;
}

.resoclub-questionnaire-banner p {
    margin: 0;
    color: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
}

.resoclub-questionnaire-banner a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.resoclub-questionnaire-banner a:hover,
.resoclub-questionnaire-banner a:focus-visible {
    color: var(--rc-white);
    text-decoration-thickness: 2px;
}


/* =========================================================
   TOP BAR
========================================================= */

.resoclub-utility-bar {

    width: 100%;

    border-bottom:
        1px solid
        var(--rc-border);

    background:
        var(--rc-surface);

}


.resoclub-utility-bar__inner {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap: 1.5rem;

    min-height: 40px;

    font-size:
        0.79rem;

}


/* =========================================================
   TOP BAR GAUCHE
========================================================= */

.resoclub-utility-bar__help {

    display: flex;

    grid-column: 2;
    grid-row: 1;

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

    gap: 0.8rem;

    min-width: 0;

}


.resoclub-utility-bar__help-label {

    color:
        var(--rc-muted);

}


.resoclub-utility-bar__phone,
.resoclub-utility-bar__victim-link {

    display: inline-flex;

    align-items: center;

    gap: 0.45rem;

    color:
        var(--rc-violet-dark);

    text-decoration: none;

    font-weight: 750;

}


.resoclub-utility-bar__phone svg {

    flex: 0 0 auto;

    width: 15px;
    height: 15px;

    fill:
        currentColor;

}


.resoclub-utility-bar__phone:hover,
.resoclub-utility-bar__phone:focus-visible,
.resoclub-utility-bar__victim-link:hover,
.resoclub-utility-bar__victim-link:focus-visible {

    color:
        var(--rc-violet);

    text-decoration:
        underline;

    text-underline-offset:
        3px;

}


/* =========================================================
   TOP BAR DROITE
========================================================= */

.resoclub-utility-bar__links {

    display: flex;

    grid-column: 3;
    grid-row: 1;

    align-items: center;

    justify-content:
        flex-end;

    gap: 0.9rem;

    flex: 0 0 auto;

}


.resoclub-utility-bar__links > a {

    color:
        var(--rc-violet-dark);

    text-decoration: none;

    font-weight: 700;

}


.resoclub-utility-bar__links > a:hover,
.resoclub-utility-bar__links > a:focus-visible {

    color:
        var(--rc-violet);

    text-decoration:
        underline;

    text-underline-offset:
        3px;

}


/* =========================================================
   RÉSEAUX SOCIAUX TOP BAR
========================================================= */

.resoclub-utility-bar__socials {

    display: flex !important;

    grid-column: 1;
    grid-row: 1;

    align-items: center;

    gap:
        0.35rem;

    float: none !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none;

}


.resoclub-utility-bar__socials .resoclub-utility-bar__social-item {

    display: flex;

    margin: 0 !important;
    padding: 0;

    list-style: none;

}


.resoclub-social-link {

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    width: 26px;
    height: 26px;

    padding: 0 !important;

    border:
        1px solid
        rgba(92, 45, 130, 0.18);

    border-radius: 50%;

    color:
        var(--rc-violet) !important;

    background:
        var(--rc-white);

    text-decoration:
        none !important;

    font-size:
        0.62rem;

    font-weight: 800;

    text-transform:
        uppercase;

    transition:
        0.18s ease;

}


.resoclub-social-link:hover,
.resoclub-social-link:focus-visible {

    color:
        var(--rc-white) !important;

    border-color:
        var(--rc-violet);

    background:
        var(--rc-violet);

}


.resoclub-social-link img {

    display: block;

    width: 18px;
    height: 18px;

    object-fit: contain;

}


/* =========================================================
   HEADER PRINCIPAL
========================================================= */

.resoclub-main-header {

    position: relative;

    width: 100%;

    background:
        var(--rc-white);

}


.resoclub-main-header__inner {

    display: flex;

    align-items: center;

    gap: 2rem;

    min-height: 86px;

}


/* =========================================================
   LOGO
========================================================= */

.resoclub-brand {

    display: flex;

    align-items: center;

    flex: 0 0 auto;

}


/*
 * Logo généré par WordPress
 */

.resoclub-brand
.custom-logo-link {

    display: inline-flex;

    align-items: center;

    margin: 0;

    padding: 0;

}


.resoclub-brand img,
.resoclub-brand
.custom-logo {

    display: block;

    width: auto;

    max-width: 205px;

    max-height: 76px;

    object-fit:
        contain;

}


/* =========================================================
   LOGO FALLBACK
========================================================= */

.resoclub-brand__fallback {

    display: flex;

    align-items: center;

    gap: 0.65rem;

    color:
        var(--rc-violet);

    text-decoration: none;

    line-height: 1;

}


.resoclub-brand .resoclub-brand__mark {

    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    object-fit: contain;

}


.resoclub-brand__fallback-copy {

    display: flex;

    flex-direction: column;

    max-width: 190px;

}


.resoclub-brand__fallback strong {

    font-size:
        1.3rem;

    font-weight: 850;

    letter-spacing:
        0.05em;

}


.resoclub-brand__fallback small {

    margin-top:
        0.15rem;

    color:
        var(--rc-muted);

    font-size:
        0.68rem;

    letter-spacing:
        0.02em;

}


/* =========================================================
   NAVIGATION PRINCIPALE
========================================================= */

.resoclub-primary-nav {

    margin-left: auto;

}


.resoclub-primary-nav__list {

    display: flex;

    align-items: stretch;

    gap: 0.1rem;

    margin: 0;

    padding: 0;

    list-style: none;

}


/* =========================================================
   ITEM MENU
========================================================= */

.resoclub-nav-group,
.resoclub-nav-direct {

    position: relative;

    display: flex;

    align-items: center;

}


/* =========================================================
   BOUTON MENU
========================================================= */

.resoclub-nav-trigger,
.resoclub-nav-direct > a {

    display: inline-flex;

    align-items: center;

    gap: 0.45rem;

    min-height: 86px;

    padding:
        0
        0.65rem;

    border: 0;

    color:
        var(--rc-ink);

    background:
        transparent;

    text-decoration: none;

    font-family: inherit;

    font-size:
        0.82rem;

    font-weight: 750;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color
        0.15s ease;

}


.resoclub-nav-trigger:hover,
.resoclub-nav-trigger:focus-visible,
.resoclub-nav-direct > a:hover,
.resoclub-nav-direct > a:focus-visible,
.resoclub-nav-group.is-open
> .resoclub-nav-trigger {

    color:
        var(--rc-violet);

}


/* =========================================================
   CTA SECONDAIRE PRAEVICTIS
========================================================= */

.resoclub-nav-direct--praevictis > .resoclub-nav-cta--secondary {
    min-height: 48px;
    margin-left: 0.25rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--rc-violet);
    border-radius: 3px;
    color: var(--rc-violet);
    background: var(--rc-white);
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.resoclub-nav-direct--praevictis > .resoclub-nav-cta--secondary:hover,
.resoclub-nav-direct--praevictis > .resoclub-nav-cta--secondary:focus-visible {
    color: var(--rc-violet-dark);
    border-color: var(--rc-violet-dark);
    background: rgba(68, 38, 120, 0.06);
}

.resoclub-nav-direct--praevictis > .resoclub-nav-cta--secondary
.resoclub-nav-direct__sub {
    color: currentColor;
    opacity: 0.72;
}


/* =========================================================
   CTA ACCOMPAGNEMENT
========================================================= */

.resoclub-nav-direct--support > .resoclub-nav-cta {
    min-height: 42px;
    margin-left: 0.45rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--rc-violet);
    border-radius: 3px;
    color: var(--rc-white);
    background: var(--rc-violet);
}

.resoclub-nav-direct--support > .resoclub-nav-cta:hover,
.resoclub-nav-direct--support > .resoclub-nav-cta:focus-visible {
    color: var(--rc-white);
    border-color: var(--rc-violet-dark);
    background: var(--rc-violet-dark);
}


/* =========================================================
   FLÈCHE MENU
========================================================= */

.resoclub-nav-trigger__chevron {

    width: 7px;
    height: 7px;

    margin-top:
        -3px;

    border-right:
        1.5px solid
        currentColor;

    border-bottom:
        1.5px solid
        currentColor;

    transform:
        rotate(45deg);

    transition:
        transform
        0.18s ease;

}


.resoclub-nav-group.is-open
.resoclub-nav-trigger__chevron {

    margin-top:
        3px;

    transform:
        rotate(225deg);

}


/* =========================================================
   PRAEVICTIS
========================================================= */

.resoclub-nav-direct > a {

    flex-direction:
        column;

    align-items:
        flex-start;

    justify-content:
        center;

    gap: 0.15rem;

}


.resoclub-nav-direct__sub {

    color:
        var(--rc-muted);

    font-size:
        0.57rem;

    font-weight: 600;

    letter-spacing:
        0.01em;

}


/* =========================================================
   MEGA MENU
========================================================= */

.resoclub-megamenu {

    position: absolute;

    top:
        calc(100% - 5px);

    left: 50%;

    z-index: 100;

    width: 420px;

    padding:
        0.7rem;

    border:
        1px solid
        var(--rc-border);

    border-radius:
        18px;

    background:
        var(--rc-white);

    box-shadow:
        var(--rc-shadow);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translate(
            -50%,
            12px
        );

    transition:
        opacity 0.17s ease,
        transform 0.17s ease,
        visibility 0.17s ease;

}


/*
 * Ouverture souris / clavier / JS
 */

.resoclub-nav-group:hover
> .resoclub-megamenu,

.resoclub-nav-group:focus-within
> .resoclub-megamenu,

.resoclub-nav-group.is-open
> .resoclub-megamenu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translate(
            -50%,
            0
        );

}


/* =========================================================
   INTRO MEGA MENU
========================================================= */

.resoclub-megamenu__intro {

    padding:
        0.85rem
        0.9rem
        1rem;

    border-bottom:
        1px solid
        var(--rc-border);

}


.resoclub-megamenu__intro > span {

    color:
        var(--rc-violet);

    font-size:
        0.7rem;

    font-weight: 850;

    letter-spacing:
        0.1em;

    text-transform:
        uppercase;

}


.resoclub-megamenu__intro p {

    margin:
        0.42rem
        0
        0;

    color:
        var(--rc-muted);

    font-size:
        0.82rem;

    line-height:
        1.5;

}


/* =========================================================
   ITEMS MEGA MENU
========================================================= */

.resoclub-megamenu__items {

    padding-top:
        0.45rem;

}


.resoclub-megamenu__item {

    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: center;

    gap: 0.7rem;

    width: 100%;

    padding:
        0.85rem
        0.75rem;

    border-radius:
        11px;

    color:
        var(--rc-ink);

    text-decoration:
        none;

    transition:
        background
        0.15s ease;

}


.resoclub-megamenu__item:hover,
.resoclub-megamenu__item:focus-visible {

    background:
        var(--rc-surface);

}


/* =========================================================
   SOUS-MENU DU MÉGA MENU
========================================================= */

.resoclub-megamenu-submenu {
    border-radius: 11px;
}


.resoclub-megamenu-submenu__trigger {
    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: center;

    gap: 0.7rem;

    width: 100%;

    padding:
        0.85rem
        0.75rem;

    border-radius: 11px;

    color: var(--rc-ink);

    cursor: pointer;

    list-style: none;

    transition:
        background 0.15s ease;
}


.resoclub-megamenu-submenu__trigger::-webkit-details-marker {
    display: none;
}


.resoclub-megamenu-submenu__trigger::marker {
    content: "";
}


.resoclub-megamenu-submenu__trigger:hover,
.resoclub-megamenu-submenu__trigger:focus-visible,
.resoclub-megamenu-submenu[open]
> .resoclub-megamenu-submenu__trigger {
    background: var(--rc-surface);
}


.resoclub-megamenu-submenu__chevron {
    width: 8px;
    height: 8px;

    margin-right: 0.2rem;

    border-right:
        2px solid
        var(--rc-violet);

    border-bottom:
        2px solid
        var(--rc-violet);

    transform:
        rotate(45deg);

    transition:
        transform 0.18s ease;
}


.resoclub-megamenu-submenu[open]
.resoclub-megamenu-submenu__chevron {
    transform:
        rotate(225deg);
}


.resoclub-megamenu-submenu__items {
    margin:
        0.2rem
        0.55rem
        0.45rem;

    padding-left: 0.6rem;

    border-left:
        2px solid
        rgba(92, 45, 130, 0.16);
}


.resoclub-megamenu-submenu__items
.resoclub-megamenu__item {
    padding:
        0.65rem
        0.7rem;
}


.resoclub-megamenu-submenu__items
.resoclub-megamenu__copy strong {
    font-size: 0.82rem;
}


/* =========================================================
   TEXTE MEGA MENU
========================================================= */

.resoclub-megamenu__copy {

    display: flex;

    flex-direction:
        column;

    gap:
        0.18rem;

    min-width: 0;

}


.resoclub-megamenu__copy strong {

    color:
        var(--rc-ink);

    font-size:
        0.88rem;

    font-weight:
        750;

}


.resoclub-megamenu__copy small {

    color:
        var(--rc-muted);

    font-size:
        0.72rem;

    font-weight: 400;

    line-height:
        1.4;

}


/* =========================================================
   FLÈCHE MEGA MENU
========================================================= */

.resoclub-megamenu__arrow {

    color:
        var(--rc-violet);

    font-size:
        1rem;

}


/* =========================================================
   ACTIONS HEADER
========================================================= */

.resoclub-main-header__actions {

    display: flex;

    align-items: center;

    gap: 0.45rem;

    margin-left:
        0.35rem;

}


/* =========================================================
    CONTRÔLES DU HEADER
========================================================= */

.resoclub-mobile-toggle {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 43px;
    height: 43px;

    padding: 0;

    border:
        1px solid
        var(--rc-border);

    border-radius: 50%;

    color:
        var(--rc-violet);

    background:
        var(--rc-white);

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;

}


.resoclub-mobile-toggle:hover,
.resoclub-mobile-toggle:focus-visible {

    background:
        var(--rc-surface);

    border-color:
        rgba(
            92,
            45,
            130,
            0.28
        );

}


/* =========================================================
   MENU BURGER
========================================================= */

.resoclub-mobile-toggle {

    display: none;

    flex-direction:
        column;

    gap: 4px;

}


.resoclub-mobile-toggle
> span:not(.screen-reader-text) {

    display: block;

    width: 18px;
    height: 2px;

    background:
        currentColor;

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

}


.resoclub-mobile-toggle[aria-expanded="true"]
> span:nth-of-type(1) {

    transform:
        translateY(6px)
        rotate(45deg);

}


.resoclub-mobile-toggle[aria-expanded="true"]
> span:nth-of-type(2) {

    opacity: 0;

}


.resoclub-mobile-toggle[aria-expanded="true"]
> span:nth-of-type(3) {

    transform:
        translateY(-6px)
        rotate(-45deg);

}


/* =========================================================
   FOOTER
========================================================= */

.resoclub-site-footer {

    margin: 0;

    width: 100%;

}


/* =========================================================
   CTA AVANT FOOTER
========================================================= */

.resoclub-footer-cta {

    padding:
        3.4rem
        0;

    color:
        var(--rc-white);

    background:
        var(--rc-violet);

}


.resoclub-footer-cta__inner {

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap:
        3rem;

}


/* =========================================================
   EYEBROW FOOTER CTA
========================================================= */

.resoclub-footer-cta__eyebrow {

    margin:
        0
        0
        0.5rem;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size:
        0.73rem;

    font-weight:
        850;

    letter-spacing:
        0.11em;

    text-transform:
        uppercase;

}


/* =========================================================
   TITRE CTA FOOTER
========================================================= */

.resoclub-footer-cta h2 {

    max-width:
        760px;

    margin: 0;

    color:
        var(--rc-white);

    font-size:
        clamp(
            1.8rem,
            3.4vw,
            3rem
        );

    font-weight:
        750;

    line-height:
        1.05;

    letter-spacing:
        -0.025em;

}


/* =========================================================
   BOUTONS CTA FOOTER
========================================================= */

.resoclub-footer-cta__actions {

    display: flex;

    flex-wrap: wrap;

    gap:
        0.8rem;

    flex: 0 0 auto;

}


.resoclub-footer-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 47px;

    padding:
        0.75rem
        1.15rem;

    border:
        1px solid
        var(--rc-white);

    border-radius:
        999px;

    text-decoration:
        none;

    font-size:
        0.88rem;

    font-weight:
        800;

    white-space:
        nowrap;

    transition:
        0.18s ease;

}


/* Bouton blanc */

.resoclub-footer-button--light {

    color:
        var(--rc-violet);

    background:
        var(--rc-white);

}


.resoclub-footer-button--light:hover,
.resoclub-footer-button--light:focus-visible {

    color:
        var(--rc-violet-dark);

    transform:
        translateY(-1px);

}


/* Bouton transparent */

.resoclub-footer-button--outline {

    color:
        var(--rc-white);

    background:
        transparent;

}


.resoclub-footer-button--outline:hover,
.resoclub-footer-button--outline:focus-visible {

    color:
        var(--rc-white);

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

}


/* =========================================================
   FOOTER PRINCIPAL
========================================================= */

.resoclub-footer-main {

    padding:
        4.2rem
        0
        1.3rem;

    background:
        var(--rc-surface);

}


/* =========================================================
   GRILLE FOOTER
========================================================= */

.resoclub-footer-grid {

    display: grid;

    grid-template-columns:
        minmax(
            260px,
            1.6fr
        )
        repeat(
            3,
            minmax(
                150px,
                1fr
            )
        );

    gap:
        3rem;

}


/* =========================================================
   MARQUE FOOTER
========================================================= */

.resoclub-footer-brand__name {

    display:
        inline-block;

    color:
        var(--rc-violet);

    text-decoration:
        none;

    font-size:
        1.35rem;

    font-weight:
        900;

    letter-spacing:
        0.06em;

}


.resoclub-footer-brand > p {

    max-width:
        33rem;

    margin:
        1rem
        0
        1.3rem;

    color:
        var(--rc-muted);

    font-size:
        0.93rem;

    line-height:
        1.7;

}


/* =========================================================
   CONTACT FOOTER
========================================================= */

.resoclub-footer-phone,
.resoclub-footer-email {

    display: block;

    width:
        fit-content;

    margin-top:
        0.45rem;

    color:
        var(--rc-violet-dark);

    text-decoration:
        none;

    font-size:
        0.9rem;

    font-weight:
        750;

}


.resoclub-footer-phone:hover,
.resoclub-footer-email:hover {

    color:
        var(--rc-violet);

    text-decoration:
        underline;

    text-underline-offset:
        3px;

}


/* =========================================================
   COLONNES FOOTER
========================================================= */

.resoclub-footer-column {

    display: flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    gap:
        0.62rem;

}


.resoclub-footer-column h2 {

    margin:
        0
        0
        0.65rem;

    color:
        var(--rc-ink);

    font-size:
        0.78rem;

    font-weight:
        900;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;

}


.resoclub-footer-column > a,
.resoclub-footer-socials a {

    color:
        var(--rc-muted);

    text-decoration:
        none;

    font-size:
        0.9rem;

    line-height:
        1.45;

}


.resoclub-footer-column > a:hover,
.resoclub-footer-column > a:focus-visible,
.resoclub-footer-socials a:hover,
.resoclub-footer-socials a:focus-visible {

    color:
        var(--rc-violet);

    text-decoration:
        underline;

    text-underline-offset:
        3px;

}


/* =========================================================
   RÉSEAUX FOOTER
========================================================= */

.resoclub-footer-socials {

    display: flex;

    flex-wrap: wrap;

    gap:
        0.8rem;

    margin-top:
        0.55rem;

}


/* =========================================================
   BAS FOOTER
========================================================= */

.resoclub-footer-bottom {

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap:
        1rem;

    margin-top:
        3rem;

    padding-top:
        1.2rem;

    border-top:
        1px solid
        var(--rc-border);

    color:
        var(--rc-muted);

    font-size:
        0.75rem;

}


.resoclub-footer-bottom p {

    margin: 0;

}


/* =========================================================
   LIENS LÉGAUX
========================================================= */

.resoclub-footer-legal {

    display: flex;

    flex-wrap: wrap;

    gap:
        1rem;

}


.resoclub-footer-legal a {

    color:
        inherit;

    text-decoration:
        none;

}


.resoclub-footer-legal a:hover,
.resoclub-footer-legal a:focus-visible {

    color:
        var(--rc-violet);

}


/* =========================================================
   DESKTOP INTERMÉDIAIRE
========================================================= */

@media
(max-width: 1180px) {

    .resoclub-nav-trigger,
    .resoclub-nav-direct > a {

        padding-left:
            0.48rem;

        padding-right:
            0.48rem;

        font-size:
            0.77rem;

    }

}


/* =========================================================
   TABLETTE / MENU MOBILE
========================================================= */

@media
(max-width: 1120px) {


    /* Header */

    .resoclub-main-header__inner {

        min-height:
            76px;

    }


    /* Logo */

    .resoclub-brand img,
    .resoclub-brand
    .custom-logo {

        max-width:
            175px;

        max-height:
            52px;

    }


    .resoclub-brand .resoclub-brand__mark {
        flex-basis: 52px;

        width: 52px;
        height: 52px;
    }


    .resoclub-main-header__actions {
        margin-left: auto;
    }


    /* Navigation mobile */

    .resoclub-primary-nav {

        position: absolute;

        top: 100%;

        left: 0;
        right: 0;

        display: none;

        max-height:
            calc(
                100vh - 115px
            );

        overflow-y: auto;

        margin: 0;

        border-top:
            1px solid
            var(--rc-border);

        background:
            var(--rc-white);

        box-shadow:
            0 18px 45px
            rgba(
                40,
                27,
                51,
                0.12
            );

    }


    .resoclub-primary-nav.is-mobile-open {

        display: block;

    }


    .resoclub-primary-nav__list {

        display: block;

        width:
            min(
                calc(100% - 2rem),
                var(--rc-container)
            );

        margin-inline:
            auto;

        padding:
            0.8rem
            0
            1.25rem;

    }


    /* Items */

    .resoclub-nav-group,
    .resoclub-nav-direct {

        display: block;

        width: 100%;

        border-bottom:
            1px solid
            var(--rc-border);

    }


    .resoclub-nav-trigger,
    .resoclub-nav-direct > a {

        width: 100%;

        min-height:
            58px;

        padding: 0;

        font-size:
            0.96rem;

    }


    .resoclub-nav-trigger {

        justify-content:
            space-between;

    }


    .resoclub-nav-direct > a {

        align-items:
            flex-start;

        justify-content:
            center;

    }


    .resoclub-nav-direct--support > .resoclub-nav-cta {
        width: auto;
        min-height: 44px;
        justify-content: center;
        margin: 0.5rem 0;
        padding: 0.65rem 1rem;
    }


    .resoclub-nav-direct--praevictis > .resoclub-nav-cta--secondary {
        width: auto;
        min-height: 48px;
        margin: 0.5rem 0;
        padding: 0.55rem 1rem;
    }


    /* Mega menu mobile */

    .resoclub-megamenu {

        position: static;

        display: none;

        width: 100%;

        padding:
            0
            0
            0.9rem;

        border: 0;

        border-radius: 0;

        box-shadow: none;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: none;

        transition: none;

    }


    /*
     * Désactive le hover desktop
     * sur mobile.
     */

    .resoclub-nav-group:hover
    > .resoclub-megamenu,

    .resoclub-nav-group:focus-within
    > .resoclub-megamenu {

        display: none;

    }


    .resoclub-nav-group.is-open
    > .resoclub-megamenu {

        display: block;

        transform: none;

    }


    .resoclub-megamenu__intro {

        display: none;

    }


    .resoclub-megamenu__item {

        padding:
            0.75rem
            0;

    }


    /* Burger */

    .resoclub-mobile-toggle {

        display:
            inline-flex;

    }


    /* Footer */

    .resoclub-footer-grid {

        grid-template-columns:
            1.5fr
            1fr
            1fr;

    }


    .resoclub-footer-column:last-child {

        grid-column:
            2 / -1;

    }

}


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

@media
(max-width: 760px) {


    .resoclub-questionnaire-banner__inner {
        flex-direction: column;
        gap: 0.35rem;
        padding-block: 0.65rem;
        text-align: center;
    }


    .resoclub-questionnaire-banner p,
    .resoclub-questionnaire-banner a {
        font-size: 0.78rem;
    }


    body.admin-bar
    .resoclub-site-header {

        top: 46px;

    }


    /* =====================================================
       TOP BAR
    ====================================================== */

    .resoclub-utility-bar__inner {

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap:
            0.45rem;

        padding-block:
            0.4rem;

    }


    .resoclub-utility-bar__help {

        grid-column: 1;
        grid-row: 1;

        justify-content: flex-start;

        flex-wrap: wrap;

        gap: 0.25rem 0.45rem;

    }


    /*
     * Keep the help label and phone visible on mobile.
     */

    .resoclub-utility-bar__help-label {

        display: inline;

        font-size:
            0.68rem;

    }


    .resoclub-utility-bar__phone {

        font-size:
            0.72rem;

    }


    .resoclub-utility-bar__links {

        display: none;

    }


    .resoclub-utility-bar__socials {

        grid-column: 2;
        grid-row: 1;

        justify-self: end;

    }


    .resoclub-utility-bar__links
    > a:not(.resoclub-social-link) {

        display: inline-flex;

        font-size:
            0.7rem;

    }


    /* =====================================================
       HEADER
    ====================================================== */

    .resoclub-main-header__inner {

        min-height:
            72px;

        gap:
            1rem;

    }


    .resoclub-brand img,
    .resoclub-brand
    .custom-logo {

        max-width:
            155px;

        max-height:
            46px;

    }


    .resoclub-brand__fallback {
        gap: 0;
    }


    .resoclub-brand__fallback-copy {
        display: none;
    }


    .resoclub-brand .resoclub-brand__mark {
        flex-basis: 46px;

        width: 46px;
        height: 46px;
    }


    /* =====================================================
       FOOTER CTA
    ====================================================== */

    .resoclub-footer-cta__inner {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            1.5rem;

    }


    /* =====================================================
       FOOTER
    ====================================================== */

    .resoclub-footer-grid {

        grid-template-columns:
            1fr
            1fr;

    }


    .resoclub-footer-brand {

        grid-column:
            1 / -1;

    }


    .resoclub-footer-column:last-child {

        grid-column:
            auto;

    }


    .resoclub-footer-bottom {

        align-items:
            flex-start;

        flex-direction:
            column;

    }

}


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

@media
(max-width: 520px) {


    /* Container */

    .resoclub-container {

        width:
            min(
                calc(100% - 1.4rem),
                var(--rc-container)
            );

    }


    /* Top bar */

    .resoclub-utility-bar__inner {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 0.4rem;

        padding-block: 0.55rem;
    }


    .resoclub-utility-bar__help {
        grid-column: 1;

        justify-content: flex-start;
        justify-self: stretch;
    }


    .resoclub-utility-bar__help {
        grid-row: 1;
    }


    .resoclub-utility-bar__socials {
        grid-column: 2;
        grid-row: 1;

        justify-content: flex-end;
        justify-self: end;
    }


    .resoclub-utility-bar__victim-link {

        font-size:
            0.72rem;

    }


    /* Boutons header */

    .resoclub-mobile-toggle {

        width: 40px;

        height: 40px;

    }


    /* Mega menu */

    .resoclub-megamenu__item {

        grid-template-columns:
            1fr
            auto;

        gap:
            0.6rem;

    }


    /* Footer */

    .resoclub-footer-grid {

        display: flex;

        flex-direction:
            column;

        gap:
            2rem;

    }


    .resoclub-footer-column {

        width: 100%;

        padding-top:
            1.25rem;

        border-top:
            1px solid
            var(--rc-border);

    }


    .resoclub-footer-cta {

        padding:
            2.7rem
            0;

    }


    .resoclub-footer-cta__actions {

        width: 100%;

    }


    .resoclub-footer-button {

        width: 100%;

    }

}


/* =========================================================
   RÉDUCTION DES ANIMATIONS
========================================================= */

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

    .resoclub-site-header *,
    .resoclub-site-footer * {

        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

    }

}
