.escf-shortcode--member-profile {
    background: transparent;
    border: 0;
    border-radius: 0;
    margin: 0 0 24px;
    padding: 0;
}

.escf-member-profile-shell {
    color: #4d3a2b;
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}

.escf-member-profile {
    background:
        radial-gradient(circle at 88% 10%, rgba(212, 189, 150, 0.2) 0, rgba(212, 189, 150, 0) 38%),
        radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.52) 0, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #f4efe6 0%, #f8f4ec 48%, #eee4d7 100%);
    border: 1px solid #deceb7;
    border-radius: 20px;
    box-shadow: 0 18px 30px rgba(75, 56, 35, 0.08);
    display: grid;
    gap: 18px;
    overflow: hidden;
    padding: 20px;
}

.escf-member-profile-card {
    background: #fffdf8;
    border: 1px solid #e5d9c6;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(85, 64, 41, 0.05);
    padding: 18px;
}

.escf-member-profile-card--notice {
    margin: 8px 0;
}

.escf-member-profile-card__title {
    color: #473324;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 2rem;
    margin: 0 0 8px;
}

.escf-member-profile-card__actions {
    margin: 14px 0 0;
}

.escf-member-profile-hero {
    background-color: #f2e9dc;
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid #dbcab0;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.escf-member-profile-hero::after {
    border: 1px solid rgba(169, 132, 79, 0.32);
    border-radius: 14px;
    content: "";
    inset: 10px;
    pointer-events: none;
    position: absolute;
}

.escf-member-profile-hero__inner {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 240px;
    min-height: 300px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.escf-member-profile-hero__metier {
    color: #725a41;
    font-size: 1.03rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.escf-member-profile-hero__name {
    color: #452f20;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 0.98;
    margin: 0;
}

.escf-member-profile-hero__ville {
    color: #614a34;
    font-size: 1.15rem;
    margin: 12px 0 0;
}

.escf-member-profile-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.escf-member-profile-hero__meta div {
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid #e2d3bb;
    border-radius: 10px;
    display: inline-grid;
    gap: 2px;
    min-width: 150px;
    padding: 8px 10px;
}

.escf-member-profile-hero__meta dt {
    color: #84684a;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin: 0;
    text-transform: uppercase;
}

.escf-member-profile-hero__meta dd {
    color: #3d2d20;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.escf-member-profile-hero__actions {
    margin: 16px 0 0;
}

.escf-member-profile-hero__avatar-wrap {
    align-self: end;
    display: flex;
    justify-content: center;
}

.escf-member-profile-hero__avatar {
    background: #f6eee2;
    border: 4px solid rgba(255, 253, 248, 0.88);
    border-radius: 999px;
    box-shadow: 0 12px 22px rgba(70, 52, 34, 0.2);
    display: block;
    height: 204px;
    object-fit: cover;
    width: 204px;
}

.escf-member-profile-tabs {
    background: #fbf8f2;
    border: 1px solid #e6dac7;
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
}

.escf-member-profile-tabs__toggle {
    left: -9999px;
    position: absolute;
}

.escf-member-profile-tabs__nav {
    border-bottom: 1px solid #eadfce;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.escf-member-profile-tabs__tab {
    background: #f5eee2;
    border: 1px solid #e2d4be;
    border-radius: 999px;
    color: #654d38;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.escf-member-profile-tabs__tab:hover,
.escf-member-profile-tabs__tab:focus-visible {
    background: #f0e6d8;
    color: #4f3928;
}

.escf-member-profile-tabs__panels {
    display: block;
}

.escf-member-profile-tabs__panel {
    display: none;
}

.escf-member-profile-tabs > .escf-member-profile-tabs__toggle:nth-of-type(1):checked ~ .escf-member-profile-tabs__nav .escf-member-profile-tabs__tab:nth-child(1),
.escf-member-profile-tabs > .escf-member-profile-tabs__toggle:nth-of-type(2):checked ~ .escf-member-profile-tabs__nav .escf-member-profile-tabs__tab:nth-child(2),
.escf-member-profile-tabs > .escf-member-profile-tabs__toggle:nth-of-type(3):checked ~ .escf-member-profile-tabs__nav .escf-member-profile-tabs__tab:nth-child(3) {
    background: linear-gradient(180deg, #b59a6f 0%, #9a7c4f 100%);
    border-color: #917449;
    color: #fff;
}

.escf-member-profile-tabs > .escf-member-profile-tabs__toggle:nth-of-type(1):checked ~ .escf-member-profile-tabs__panels .escf-member-profile-tabs__panel--about,
.escf-member-profile-tabs > .escf-member-profile-tabs__toggle:nth-of-type(2):checked ~ .escf-member-profile-tabs__panels .escf-member-profile-tabs__panel--etablissement,
.escf-member-profile-tabs > .escf-member-profile-tabs__toggle:nth-of-type(3):checked ~ .escf-member-profile-tabs__panels .escf-member-profile-tabs__panel--galerie {
    display: block;
}

.escf-member-profile-section__header {
    margin-bottom: 12px;
}

.escf-member-profile-section__header h3 {
    color: #463224;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(1.9rem, 2.8vw, 2.4rem);
    margin: 0;
}

.escf-member-profile-empty {
    background: #f8f2e7;
    border: 1px solid #e5d8c3;
    border-radius: 10px;
    color: #6f5a43;
    margin: 0;
    padding: 12px;
}

.escf-member-profile-richtext p {
    color: #5d4937;
    margin: 0;
}

.escf-member-profile-about-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.escf-member-profile-card h4 {
    color: #4a3526;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 1.65rem;
    font-weight: 500;
    margin: 0 0 6px;
}

.escf-member-profile-card p {
    color: #604b37;
    margin: 0;
}

.escf-member-profile-establishment__name {
    color: #402d20;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(2rem, 3.2vw, 2.55rem);
    line-height: 1;
    margin: 0 0 10px;
}

.escf-member-profile-establishment__list {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.escf-member-profile-establishment__list li {
    align-items: flex-start;
    background: #fbf7f0;
    border: 1px solid #e7dbc7;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    padding: 10px 11px;
}

.escf-member-profile-establishment__list span {
    color: #7f6648;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.escf-member-profile-establishment__list a,
.escf-member-profile-establishment__list strong {
    color: #4d3727;
    font-size: 1rem;
    margin: 0;
    text-decoration: none;
    word-break: break-word;
}

.escf-member-profile-establishment__list a:hover,
.escf-member-profile-establishment__list a:focus-visible {
    text-decoration: underline;
}

.escf-member-profile-gallery-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.escf-member-profile-gallery-grid__item {
    margin: 0;
}

.escf-member-profile-gallery-grid__item a {
    border-radius: 12px;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.escf-member-profile-gallery-grid__item img {
    display: block;
    height: 190px;
    object-fit: cover;
    transition: transform 0.25s ease;
    width: 100%;
}

.escf-member-profile-gallery-grid__item a:hover img,
.escf-member-profile-gallery-grid__item a:focus-visible img {
    transform: scale(1.04);
}

.escf-member-profile-card--extra {
    color: #5e4936;
}

@media (max-width: 980px) {
    .escf-member-profile {
        padding: 14px;
    }

    .escf-member-profile-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .escf-member-profile-hero__avatar-wrap {
        justify-content: flex-start;
    }

    .escf-member-profile-hero__avatar {
        height: 160px;
        width: 160px;
    }

    .escf-member-profile-about-grid {
        grid-template-columns: 1fr;
    }

    .escf-member-profile-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .escf-member-profile {
        border-radius: 14px;
        padding: 10px;
    }

    .escf-member-profile-card,
    .escf-member-profile-tabs {
        border-radius: 12px;
        padding: 12px;
    }

    .escf-member-profile-hero {
        border-radius: 12px;
    }

    .escf-member-profile-hero::after {
        inset: 8px;
    }

    .escf-member-profile-hero__inner {
        padding: 14px;
    }

    .escf-member-profile-hero__meta {
        gap: 8px;
    }

    .escf-member-profile-hero__meta div {
        min-width: 0;
        width: 100%;
    }

    .escf-member-profile-tabs__tab {
        font-size: 0.92rem;
        padding: 9px 12px;
    }

    .escf-member-profile-gallery-grid {
        grid-template-columns: 1fr;
    }

    .escf-member-profile-gallery-grid__item img {
        height: 220px;
    }
}
