/* Fonctionnement: a readable sequence, with optional detail at each step. */
body[data-route='/fonctionnement'] .hiw-hero {
    padding: 136px 0 0;
}

body[data-route='/fonctionnement'] .hiw-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 80px;
}

body[data-route='/fonctionnement'] .hiw-hero h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 4.8vw, 4.4rem);
    line-height: 1.09;
    letter-spacing: -0.045em;
    margin-bottom: 24px;
    text-wrap: balance;
}

body[data-route='/fonctionnement'] .hiw-hero-intro {
    max-width: 600px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #bcb6ac;
}

body[data-route='/fonctionnement'] .hiw-hero-note {
    padding-left: 24px;
    border-left: 1px solid var(--gold);
}

body[data-route='/fonctionnement'] .hiw-hero-note p {
    font-size: 0.94rem;
    line-height: 1.75;
    color: #bcb6ac;
}

body[data-route='/fonctionnement'] .hiw-hero-note .hiw-note-title {
    font-family: var(--font-serif);
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

body[data-route='/fonctionnement'] .text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--gold);
    line-height: 1.5;
    font-size: 0.94rem;
    margin-top: 10px;
    text-underline-offset: 4px;
}

body[data-route='/fonctionnement'] .text-link:hover {
    text-decoration: underline;
}

body[data-route='/fonctionnement'] .hiw-index {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 52px;
    padding: 22px 0;
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
}

body[data-route='/fonctionnement'] .hiw-index a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #cec8bd;
    font-size: 0.9rem;
    line-height: 1.45;
}

body[data-route='/fonctionnement'] .hiw-index a:hover {
    color: var(--gold);
}

body[data-route='/fonctionnement'] .hiw-index span {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1.05rem;
}

body[data-route='/fonctionnement'] .hiw-process {
    padding: 16px 0 72px;
}

body[data-route='/fonctionnement'] .hiw-steps {
    max-width: none;
    margin: 0;
    list-style: none;
}

body[data-route='/fonctionnement'] .hiw-step {
    display: grid;
    grid-template-columns: 70px minmax(0, 0.85fr) minmax(0, 1.25fr);
    gap: 36px;
    padding: 48px 0;
    scroll-margin-top: calc(var(--header-h) + 24px);
    border-color: var(--border-strong);
}

body[data-route='/fonctionnement'] .hiw-step-number {
    font-size: 3.1rem;
    color: var(--gold);
    opacity: 1;
    line-height: 1.12;
    letter-spacing: -0.06em;
}

body[data-route='/fonctionnement'] .hiw-step > h2 {
    color: var(--text);
    font-size: clamp(1.6rem, 2.25vw, 2rem);
    letter-spacing: -0.025em;
    line-height: 1.25;
    padding-top: 5px;
    text-wrap: balance;
}

body[data-route='/fonctionnement'] .hiw-step-content {
    min-width: 0;
    padding-top: 5px;
}

body[data-route='/fonctionnement'] .hiw-step-content p {
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0 0 16px;
    color: #bcb6ac;
}

body[data-route='/fonctionnement'] .hiw-step-content .hiw-step-lead {
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.7;
}

body[data-route='/fonctionnement'] .hiw-step-content strong {
    color: var(--text);
    font-weight: 500;
}

body[data-route='/fonctionnement'] .hiw-detail {
    border-top: 1px solid var(--border-strong);
    margin-top: 20px;
}

body[data-route='/fonctionnement'] .hiw-detail summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.55;
}

body[data-route='/fonctionnement'] .hiw-detail summary::-webkit-details-marker {
    display: none;
}

body[data-route='/fonctionnement'] .hiw-detail summary span {
    color: var(--gold);
    font-size: 1.3rem;
    flex-shrink: 0;
}

body[data-route='/fonctionnement'] .hiw-detail[open] summary span {
    transform: rotate(45deg);
}

body[data-route='/fonctionnement'] .hiw-detail > div {
    padding: 8px 0 0;
}

body[data-route='/fonctionnement'] .hiw-faq {
    background: var(--bg-surface);
    padding: 80px 0;
}

body[data-route='/fonctionnement'] .hiw-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 100px;
    align-items: start;
}

body[data-route='/fonctionnement'] .hiw-faq-heading h2,
body[data-route='/fonctionnement'] .hiw-closing h2 {
    color: var(--text);
    font-size: clamp(2rem, 3.7vw, 3.1rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

body[data-route='/fonctionnement'] .hiw-faq-heading > p:last-child {
    color: #bcb6ac;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 300px;
}

body[data-route='/fonctionnement'] .faq-list {
    max-width: none;
    width: 100%;
    margin: 0;
    min-width: 0;
}

body[data-route='/fonctionnement'] .hiw-faq-group + .hiw-faq-group {
    margin-top: 38px;
}

body[data-route='/fonctionnement'] .hiw-faq-group h3 {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 10px;
    line-height: 1.6;
}

body[data-route='/fonctionnement'] .faq-question {
    padding: 18px 0;
    gap: 20px;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    min-height: 56px;
}

body[data-route='/fonctionnement'] .faq-icon {
    color: var(--gold);
    transform: none;
}

body[data-route='/fonctionnement'] .faq-answer {
    display: none;
    max-height: none;
    overflow: visible;
    transition: none;
}

body[data-route='/fonctionnement'] .faq-item.open .faq-answer {
    display: block;
    max-height: none;
}

body[data-route='/fonctionnement'] .faq-answer p {
    color: #bcb6ac;
    font-size: 0.96rem;
    line-height: 1.8;
    padding: 0 32px 24px 0;
    overflow-wrap: anywhere;
}

body[data-route='/fonctionnement'] .hiw-closing {
    padding: 80px 0;
}

body[data-route='/fonctionnement'] .hiw-closing-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

body[data-route='/fonctionnement'] .hiw-closing p {
    color: #bcb6ac;
    font-size: 1rem;
}

body[data-route='/fonctionnement'] .hiw-closing .btn {
    min-height: 52px;
    white-space: normal;
    text-align: center;
    gap: 20px;
}

body[data-route='/fonctionnement'] :is(a, button, summary):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 5px;
}

@media (max-width: 900px) {
    body[data-route='/fonctionnement'] .hiw-hero-layout {
        gap: 36px;
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
    }

    body[data-route='/fonctionnement'] .hiw-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 24px;
        padding: 16px 0;
    }

    body[data-route='/fonctionnement'] .hiw-step {
        grid-template-columns: 54px minmax(0, 0.9fr) minmax(0, 1.4fr);
        gap: 24px;
    }

    body[data-route='/fonctionnement'] .hiw-faq-layout {
        gap: 48px;
    }
}

@media (max-width: 640px) {
    body[data-route='/fonctionnement'] .hiw-hero {
        padding-top: 106px;
    }

    body[data-route='/fonctionnement'] .hiw-hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    body[data-route='/fonctionnement'] .hiw-hero h1 {
        font-size: clamp(2rem, 8.8vw, 3.2rem);
        line-height: 1.12;
        letter-spacing: -0.045em;
        margin-bottom: 18px;
    }

    body[data-route='/fonctionnement'] .hiw-hero-intro {
        font-size: 1rem;
        line-height: 1.7;
    }

    body[data-route='/fonctionnement'] .hiw-hero-note {
        padding-left: 18px;
    }

    body[data-route='/fonctionnement'] .hiw-hero-note .hiw-note-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    body[data-route='/fonctionnement'] .hiw-hero-note p {
        font-size: 0.92rem;
    }

    body[data-route='/fonctionnement'] .hiw-index {
        margin-top: 28px;
        gap: 4px 18px;
    }

    body[data-route='/fonctionnement'] .hiw-index a {
        font-size: 0.85rem;
        gap: 9px;
        align-items: baseline;
        padding: 9px 0;
    }

    body[data-route='/fonctionnement'] .hiw-process {
        padding: 4px 0 36px;
    }

    body[data-route='/fonctionnement'] .hiw-step {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 18px 14px;
        padding: 30px 0;
    }

    body[data-route='/fonctionnement'] .hiw-step-number {
        font-size: 2.3rem;
        line-height: 1.3;
    }

    body[data-route='/fonctionnement'] .hiw-step > h2 {
        font-size: 1.65rem;
        line-height: 1.2;
        padding-top: 0;
        text-wrap: initial;
    }

    body[data-route='/fonctionnement'] .hiw-step-content {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    body[data-route='/fonctionnement'] .hiw-step-content .hiw-step-lead {
        font-size: 1.05rem;
    }

    body[data-route='/fonctionnement'] .hiw-step-content p {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    body[data-route='/fonctionnement'] .hiw-faq {
        padding: 48px 0;
    }

    body[data-route='/fonctionnement'] .hiw-faq-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    body[data-route='/fonctionnement'] .hiw-faq-heading h2,
    body[data-route='/fonctionnement'] .hiw-closing h2 {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    body[data-route='/fonctionnement'] .hiw-faq-heading > p:last-child {
        max-width: none;
    }

    body[data-route='/fonctionnement'] .faq-answer p {
        padding-right: 0;
        font-size: 0.96rem;
    }

    body[data-route='/fonctionnement'] .hiw-closing {
        padding: 48px 0;
    }

    body[data-route='/fonctionnement'] .hiw-closing-layout {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 360px) {
    body[data-route='/fonctionnement'] .hiw-index {
        grid-template-columns: minmax(0, 1fr);
    }

    body[data-route='/fonctionnement'] .hiw-index a {
        padding: 8px 0;
    }

    body[data-route='/fonctionnement'] .hiw-step > h2 {
        font-size: 1.45rem;
    }
}
