/* Sections territoriales partagées par les pages locales. */

.referral-local-hero {
    padding-top: 40px;
}

.referral-needs {
    background: #fff;
}

.referral-needs h2,
.referral-local-territories h2,
.referral-local-faq h2,
.referral-preparation h2 {
    margin: 0 0 17px;
    color: var(--referral-navy);
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.referral-needs .section-heading > p:last-child,
.referral-local-territories .section-heading > p:last-child {
    color: var(--referral-muted);
    font-size: .78rem;
    line-height: 1.75;
}

.referral-needs .section-heading {
    max-width: 820px;
    margin: 0 auto 34px;
}

.referral-needs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.referral-needs-grid article {
    padding: 25px 22px;
    background: linear-gradient(145deg, #fff, #f6fbff);
    border: 1px solid #dcebf5;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(27, 72, 114, .05);
}

.referral-needs-grid article > span {
    display: grid;
    width: 54px;
    height: 54px;
    color: var(--referral-teal);
    background: #edfafa;
    border-radius: 50%;
    place-items: center;
}

.referral-needs-grid svg {
    width: 25px;
    height: 25px;
}

.referral-needs-grid h3 {
    margin: 18px 0 9px;
    font-size: .86rem;
}

.referral-needs-grid p {
    margin: 0;
    color: var(--referral-muted);
    font-size: .7rem;
    line-height: 1.7;
}

.referral-local-territories {
    padding: 72px 0 82px;
    background: #f5faff;
}

.referral-local-territories .section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
}

.referral-department-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.referral-department-grid article {
    padding: 21px;
    background: #fff;
    border: 1px solid #dfebf3;
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(27, 72, 114, .05);
}

.referral-department-grid article header {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.referral-department-grid article header > span {
    display: grid;
    width: 43px;
    height: 43px;
    color: #fff;
    background: var(--referral-blue);
    border-radius: 10px;
    place-items: center;
    font-size: .68rem;
    font-weight: 800;
}

.referral-department-grid h3 {
    margin: 0;
    font-size: .86rem;
}

.referral-department-grid header p {
    margin: 3px 0 0;
    color: var(--referral-muted);
    font-size: .62rem;
}

.referral-department-grid .referral-city-heading {
    margin: 17px 0 0;
    color: var(--referral-muted);
    font-size: .59rem;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.referral-department-grid ul {
    display: grid;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.referral-department-grid li {
    display: flex;
    padding: 8px 0;
    color: #31577f;
    border-top: 1px solid #edf2f6;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .68rem;
    font-weight: 690;
}

.referral-department-grid li small {
    color: #8193a7;
    font-size: .59rem;
    font-weight: 600;
}

.referral-preparation {
    background: #fff;
}

.referral-preparation-grid {
    display: grid;
    grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: 64px;
}

.referral-preparation-grid > div > p:not(.referral-kicker) {
    margin: 0;
    color: var(--referral-muted);
    font-size: .75rem;
    line-height: 1.75;
}

.referral-preparation ul {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.referral-preparation li {
    display: grid;
    padding: 20px;
    color: var(--referral-muted);
    background: #f6fbff;
    border: 1px solid #e0ebf3;
    border-radius: 12px;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
    font-size: .67rem;
    line-height: 1.6;
}

.referral-preparation li > svg {
    width: 22px;
    height: 22px;
    color: var(--referral-teal);
}

.referral-preparation li strong {
    display: block;
    margin-bottom: 3px;
    color: var(--referral-navy);
    font-size: .75rem;
}

.referral-preparation-note {
    display: flex;
    margin: 20px 0 0;
    padding: 14px 18px;
    color: #426380;
    background: #eef9f8;
    border: 1px solid #d8ece9;
    border-radius: 10px;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
    font-size: .66rem;
    font-weight: 700;
}

.referral-preparation-note svg {
    width: 20px;
    height: 20px;
    color: var(--referral-teal);
    flex: 0 0 auto;
}

.referral-local-faq-grid {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
    align-items: start;
    gap: 70px;
}

.referral-other-regions {
    padding: 0 0 70px;
}

@media (max-width: 940px) {
    .referral-department-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referral-preparation-grid,
    .referral-local-faq-grid {
        gap: 35px;
    }

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

@media (max-width: 720px) {
    .referral-preparation-grid,
    .referral-local-faq-grid,
    .referral-department-grid {
        grid-template-columns: 1fr;
    }

    .referral-needs-grid,
    .referral-preparation ul {
        grid-template-columns: 1fr;
    }

    .referral-local-territories {
        padding: 52px 0 58px;
    }
}

