/* =================================================================
   MEMBRE PROFILE — gas-membre-profile
   Tokens : --gas-* (config/gas-design-tokens.css) en priorité.
   Bridge local : alias sémantiques palette (--primary, --base…) → gas.
   Typo / spacing / radius : --gas-text-*, --gas-space-*, --gas-radius-*.
   ================================================================= */

/* -----------------------------------------------------------------
   BRIDGE palette sémantique → gas-* (sous-arbre profil)
   ----------------------------------------------------------------- */
.gas-membre-profile {
    --primary: var(--gas-primary);
    --primary-dark: var(--gas-primary-dark);
    --primary-light: var(--gas-primary-light);
    --primary-ultra-light: var(--gas-primary-ultra-light);
    --secondary: var(--gas-secondary);
    --secondary-dark: var(--gas-secondary-dark);
    --secondary-light: var(--gas-secondary-light);
    --secondary-ultra-light: var(--gas-secondary-ultra-light);
    --accent: var(--gas-accent);
    --accent-dark: var(--gas-accent-dark);
    --accent-light: var(--gas-accent-light);
    --accent-ultra-light: var(--gas-accent-ultra-light);
    --neutral-light: var(--gas-neutral-200);
    --neutral-ultra-light: var(--gas-neutral-100);
    --base: var(--gas-text-color);
    --base-semi-dark: var(--gas-text-color-light);
}

/* -----------------------------------------------------------------
   ROOT
   ----------------------------------------------------------------- */
.gas-membre-profile {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--gas-space-m);
    font-family: var(--gas-font-family);
    color: var(--base);
    line-height: 1.65;
    font-size: var(--gas-text-m);
}

/* -----------------------------------------------------------------
   HERO BANNER
   ----------------------------------------------------------------- */
.gas-membre-profile__hero {
    position: relative;
    height: calc(var(--gas-space-unit) * 70);
    border-radius: var(--gas-radius-l);
    overflow: hidden;
    margin-bottom: 0;
}

.gas-membre-profile__hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gas-membre-profile__hero-bg--default {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--secondary) 100%);
}

.gas-membre-profile__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

/* -----------------------------------------------------------------
   IDENTITY CARD — layout horizontal (avatar gauche / infos droite)
   Style "carte de visite pro", inspiré Doctolib / LinkedIn.
   L'avatar SEUL chevauche le hero (margin-top négatif individuel).
   Le nom et le bloc texte restent SOUS le hero (zone blanche).
   ----------------------------------------------------------------- */
.gas-membre-profile__identity {
    position: relative;
    display: grid;
    /* Colonne gauche = photo + badges site ; droite = nom / tagline */
    grid-template-columns: calc(var(--gas-space-unit) * 45) 1fr; /* 180px */
    grid-template-rows: auto auto auto;
    column-gap: var(--gas-space-l);
    row-gap: var(--gas-space-xs);
    align-items: start;
    padding: var(--gas-space-m);
    z-index: 2;
    text-align: left;
    min-height: calc(var(--gas-space-unit) * 25);
}

.gas-membre-profile__avatar {
    grid-column: 1;
    grid-row: 1;
    width: calc(var(--gas-space-unit) * 40); /* 160px */
    height: calc(var(--gas-space-unit) * 40);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: calc(var(--gas-space-unit) + 1px) solid var(--gas-text-color-inverse, #fff);
    box-shadow: 0 var(--gas-space-s) var(--gas-space-l) rgba(0, 0, 0, 0.18);
    /* Seul l'avatar chevauche le hero — pas le reste du bloc identity */
    margin-top: calc(var(--gas-space-unit) * -22.5); /* ~-90px */
    align-self: start;
    flex-shrink: 0;
    justify-self: center;
}

.gas-membre-profile__avatar--placeholder {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gas-membre-profile__avatar--placeholder span {
    color: white;
    font-size: var(--gas-text-3xl);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.gas-membre-profile__name {
    grid-column: 2;
    grid-row: 1;
    font-size: var(--gas-text-2xl);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.15;
    /* Aligne le nom avec le bas de la photo (la photo a un margin-top négatif). */
    align-self: end;
    padding-bottom: var(--gas-space-2xs);
}

.gas-membre-profile__tagline {
    grid-column: 2;
    grid-row: 2;
    font-size: var(--gas-text-m);
    color: var(--base-semi-dark);
    font-style: italic;
    margin: 0;
    max-width: 720px;
    line-height: 1.5;
}

.gas-membre-profile__identity > .gas-membre-profile__core-specs {
    grid-column: 2;
    grid-row: 3;
    margin: var(--gas-space-xs) 0 0;
    justify-content: flex-start;
}

/* Badges (site cabinet…) : sous la photo, colonne gauche desktop. */
.gas-membre-profile__badges {
    grid-column: 1;
    grid-row: 2 / span 2;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    gap: var(--gas-space-xs);
    margin: var(--gas-space-s) 0 0;
    width: calc(var(--gas-space-unit) * 40); /* 160px si unit = 4px */
    max-width: 100%;
    justify-self: center;
    justify-content: flex-start;
}

.gas-membre-profile__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gas-space-2xs);
    max-width: 100%;
    padding: var(--gas-space-xs) var(--gas-space-s);
    background: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: var(--gas-radius-full);
    font-size: var(--gas-text-xs);
    font-weight: 600;
    border: 1px solid var(--primary-light);
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

/* Badge « charte signée » — rendu par le point d'accroche partagé du profil
   public (gas_membre_profile_extra_badges), au même niveau que les badges de
   groupe : pas de liste séparée. */
.gas-membre-profile__badge--ack {
    background: var(--gas-success-bg, var(--primary-ultra-light));
    color: var(--gas-success-text, var(--primary));
    border-color: var(--gas-success-border, var(--primary-light));
}

.gas-membre-profile__badge--secondary {
    background: var(--secondary-ultra-light);
    color: var(--secondary);
    border-color: var(--secondary-light);
}

.gas-membre-profile__badge--link {
    text-decoration: none;
    cursor: pointer;
    transition: background var(--gas-transition-fast), color var(--gas-transition-fast);
}

.gas-membre-profile__badge--link:hover {
    background: var(--secondary);
    color: var(--gas-text-color-inverse);
    border-color: var(--secondary);
}

.gas-membre-profile__badge--link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.gas-membre-profile__badge--link:hover svg {
    opacity: 1;
}

/* Chip site web 2 lignes (label + hôte) — tokens GAS uniquement. */
.gas-membre-profile__site-chip {
    display: flex;
    align-items: center;
    gap: var(--gas-space-s);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: var(--gas-space-s);
    text-decoration: none;
    color: var(--secondary);
    background: var(--secondary-ultra-light);
    border: 1px solid var(--secondary-light);
    border-radius: var(--gas-radius-l);
    transition:
        background var(--gas-transition-fast),
        color var(--gas-transition-fast),
        border-color var(--gas-transition-fast);
}

.gas-membre-profile__site-chip:hover,
.gas-membre-profile__site-chip:focus-visible {
    background: var(--secondary);
    color: var(--gas-text-color-inverse);
    border-color: var(--secondary);
    outline: none;
}

.gas-membre-profile__site-chip-icon,
.gas-membre-profile__site-chip-ext {
    flex-shrink: 0;
    opacity: 0.75;
}

.gas-membre-profile__site-chip:hover .gas-membre-profile__site-chip-icon,
.gas-membre-profile__site-chip:hover .gas-membre-profile__site-chip-ext,
.gas-membre-profile__site-chip:focus-visible .gas-membre-profile__site-chip-icon,
.gas-membre-profile__site-chip:focus-visible .gas-membre-profile__site-chip-ext {
    opacity: 1;
}

.gas-membre-profile__site-chip-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gas-space-2xs);
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.gas-membre-profile__site-chip-label {
    font-size: var(--gas-text-2xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.gas-membre-profile__site-chip-host {
    font-size: var(--gas-text-xs);
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lien ancre « Envoyer un message » (haut de page → #contact-form). */
.gas-membre-profile__jump-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gas-space-xs);
    margin-top: var(--gas-space-s);
    padding: var(--gas-space-s) var(--gas-space-m);
    font-size: var(--gas-text-s);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    color: var(--gas-text-color-inverse);
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--gas-radius-m);
    transition:
        background var(--gas-transition-fast),
        border-color var(--gas-transition-fast);
}

.gas-membre-profile__jump-contact:hover,
.gas-membre-profile__jump-contact:focus-visible {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--gas-text-color-inverse);
    outline: none;
}

.gas-membre-profile__identity .gas-membre-profile__jump-contact {
    grid-column: 2;
    justify-self: start;
}

.gas-membre-profile__section--contact-form:target {
    scroll-margin-top: var(--gas-space-xl);
}

/* Maillage SEO vers landings ville / canton */
.gas-membre-profile__local-links {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gas-space-xs) var(--gas-space-s);
    margin: var(--gas-space-xs) 0 0;
}

.gas-membre-profile__local-link {
    display: inline-flex;
    align-items: center;
    padding: var(--gas-space-2xs) var(--gas-space-s);
    border-radius: var(--gas-radius-full);
    border: 1px solid var(--primary-light, #9ec9d4);
    background: var(--primary-ultra-light, #eef8fa);
    color: var(--primary, #0a4a5c);
    font-size: var(--gas-text-xs);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
}

.gas-membre-profile__local-link:hover,
.gas-membre-profile__local-link:focus-visible {
    background: var(--primary, #0a4a5c);
    color: #fff;
    border-color: var(--primary, #0a4a5c);
    text-decoration: none;
}

@media (max-width: 768px) {
    .gas-membre-profile__local-links {
        grid-column: 1;
        justify-content: center;
    }
}

/* -----------------------------------------------------------------
   PRIVATE SECTION
   ----------------------------------------------------------------- */
.gas-membre-profile__private {
    background: var(--accent-ultra-light);
    border: 1px solid var(--accent-light);
    border-radius: var(--gas-radius-l);
    padding: var(--gas-space-l);
    margin-bottom: var(--gas-space-l);
}

.gas-membre-profile__private-banner {
    display: inline-flex;
    align-items: center;
    gap: var(--gas-space-xs);
    background: var(--accent);
    color: white;
    padding: var(--gas-space-xs) var(--gas-space-m);
    border-radius: var(--gas-radius-m);
    font-size: var(--gas-text-xs);
    font-weight: 600;
    margin-bottom: var(--gas-space-m);
}

.gas-membre-profile__private-icon {
    flex-shrink: 0;
}

.gas-membre-profile__private-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gas-space-s) var(--gas-space-l);
}

.gas-membre-profile__private-item {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-2xs);
}

.gas-membre-profile__private-item--wide {
    grid-column: 1 / -1;
}

.gas-membre-profile__private-label {
    font-size: var(--gas-text-xs);
    font-weight: 600;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gas-membre-profile__private-value {
    font-size: var(--gas-text-s);
    color: var(--base);
}

/* -----------------------------------------------------------------
   BODY — two-column layout
   ----------------------------------------------------------------- */
.gas-membre-profile__body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--gas-space-l);
    margin-bottom: var(--gas-space-l);
}

/* -----------------------------------------------------------------
   MAIN CONTENT
   ----------------------------------------------------------------- */
.gas-membre-profile__main {
    min-width: 0;
}

.gas-membre-profile__section {
    margin-bottom: var(--gas-space-m);
    gap: 0;
}

.gas-membre-profile__section--full {
    margin-bottom: var(--gas-space-l);
}

.gas-membre-profile__section-title {
    font-size: var(--gas-text-l);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 var(--gas-space-s);
    padding-bottom: var(--gas-space-s);
    border-bottom: 2px solid var(--primary-ultra-light);
}

.gas-membre-profile__section-text {
    font-size: var(--gas-text-s);
    line-height: 1.7;
    color: var(--base);
}

.gas-membre-profile__section--empty {
    padding: var(--gas-space-xl);
    text-align: center;
    color: var(--base-semi-dark);
    font-style: italic;
    background: var(--neutral-ultra-light);
    border-radius: var(--gas-radius-l);
}

/* -----------------------------------------------------------------
   SIDEBAR
   ----------------------------------------------------------------- */
.gas-membre-profile__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-m);
}

.gas-membre-profile__card {
    background: white;
    border: 1px solid var(--neutral-light);
    border-radius: var(--gas-radius-l);
    padding: var(--gas-space-m);
}

.gas-membre-profile__card-title {
    display: flex;
    align-items: center;
    gap: var(--gas-space-xs);
    font-size: var(--gas-text-m);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 var(--gas-space-m);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: var(--gas-text-xs);
}

.gas-membre-profile__card-icon {
    flex-shrink: 0;
    color: var(--primary);
}

/* -----------------------------------------------------------------
   ADDRESSES
   ----------------------------------------------------------------- */
.gas-membre-profile__address {
    padding: var(--gas-space-s) 0;
    border-bottom: 1px solid var(--neutral-ultra-light);
}

.gas-membre-profile__address:last-of-type {
    border-bottom: none;
}

.gas-membre-profile__address-street {
    font-size: var(--gas-text-s);
    color: var(--base);
}

.gas-membre-profile__address-city {
    font-size: var(--gas-text-s);
    font-weight: 600;
    color: var(--primary-dark);
}

.gas-membre-profile__address-canton {
    font-size: var(--gas-text-xs);
    color: var(--base-semi-dark);
}

/* -----------------------------------------------------------------
   DIRECTIONS (Google Maps / Apple Plans)
   ----------------------------------------------------------------- */
.gas-membre-profile__directions {
    display: flex;
    gap: var(--gas-space-s);
    margin-top: var(--gas-space-s);
}

.gas-membre-profile__direction-link {
    display: inline-flex;
    align-items: center;
    gap: var(--gas-space-xs);
    font-size: var(--gas-text-xs);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: var(--gas-space-xs) var(--gas-space-s);
    border-radius: var(--gas-radius-full);
    border: 1px solid var(--primary-light);
    background: var(--primary-ultra-light);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.gas-membre-profile__direction-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gas-membre-profile__direction-link svg {
    flex-shrink: 0;
}

/* -----------------------------------------------------------------
   MAP
   ----------------------------------------------------------------- */
.gas-membre-profile__map-wrap {
    margin-top: var(--gas-space-m);
    border-radius: var(--gas-radius-m);
    overflow: hidden;
    border: 1px solid var(--neutral-light);
}

.gas-membre-profile__map {
    width: 100%;
    height: calc(var(--gas-space-unit) * 55);
    display: block;
}

/* -----------------------------------------------------------------
   STATS
   ----------------------------------------------------------------- */
.gas-membre-profile__stats {
    display: flex;
    gap: var(--gas-space-m);
}

.gas-membre-profile__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: var(--gas-space-s);
    background: var(--primary-ultra-light);
    border-radius: var(--gas-radius-m);
    text-align: center;
}

.gas-membre-profile__stat-value {
    font-size: var(--gas-text-xl);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.gas-membre-profile__stat-label {
    font-size: var(--gas-text-2xs);
    color: var(--base-semi-dark);
    margin-top: var(--gas-space-2xs);
}

/* -----------------------------------------------------------------
   WEBSITE LINK
   ----------------------------------------------------------------- */
.gas-membre-profile__website-link {
    display: inline-flex;
    align-items: center;
    gap: var(--gas-space-xs);
    color: var(--primary);
    text-decoration: none;
    font-size: var(--gas-text-s);
    word-break: break-all;
    transition: color 0.2s;
}

.gas-membre-profile__website-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.gas-membre-profile__website-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* -----------------------------------------------------------------
   SPECIALIZATIONS — compact flat layout
   ----------------------------------------------------------------- */
.gas-membre-profile__specs {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-s);
}

.gas-membre-profile__spec {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-s);
}

.gas-membre-profile__spec-title {
    font-size: var(--gas-text-xs);
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.gas-membre-profile__spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gas-space-xs);
}

.gas-membre-profile__spec-tag {
    display: inline-block;
    padding: var(--gas-space-2xs) var(--gas-space-s);
    background: var(--primary-ultra-light);
    color: var(--primary-dark);
    border-radius: var(--gas-radius-full);
    font-size: var(--gas-text-xs);
    line-height: 1.6;
    border: 1px solid var(--primary-light);
}

.gas-membre-profile__spec-tag--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
    font-weight: 600;
}

/* -----------------------------------------------------------------
   CERTIFICATES
   ----------------------------------------------------------------- */
.gas-membre-profile__certs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gas-space-m);
}

.gas-membre-profile__cert {
    background: white;
    border: 1px solid var(--neutral-light);
    border-radius: var(--gas-radius-l);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.gas-membre-profile__cert:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.gas-membre-profile__cert-thumb {
    width: 100%;
    height: calc(var(--gas-space-unit) * 45);
    overflow: hidden;
    cursor: pointer;
}

.gas-membre-profile__cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gas-membre-profile__cert:hover .gas-membre-profile__cert-thumb img {
    transform: scale(1.05);
}

.gas-membre-profile__cert-info {
    padding: var(--gas-space-s) var(--gas-space-m);
}

.gas-membre-profile__cert-title {
    font-size: var(--gas-text-s);
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
}

.gas-membre-profile__cert-year {
    font-size: var(--gas-text-xs);
    color: var(--base-semi-dark);
}

/* -----------------------------------------------------------------
   CERTIFICATE MODAL
   ----------------------------------------------------------------- */
.gas-membre-profile__modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gas-membre-profile__modal[aria-hidden="false"] {
    display: flex;
}

.gas-membre-profile__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.gas-membre-profile__modal-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.gas-membre-profile__modal-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--gas-radius-l);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.gas-membre-profile__modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: calc(var(--gas-space-unit) * 10);
    height: calc(var(--gas-space-unit) * 10);
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--base);
    font-size: var(--gas-text-xl);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    z-index: 1;
    line-height: 1;
}

.gas-membre-profile__modal-close:hover {
    transform: scale(1.1);
}

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 900px) {
    .gas-membre-profile__body {
        grid-template-columns: 1fr;
        gap: var(--gas-space-l);
    }

    .gas-membre-profile__sidebar {
        order: -1;
    }
}

/* Responsive identité : 1 col centrée
   Ordre : avatar → nom → tagline → specs → site → CTA message → liens locaux
   (annuler grid-column: 2 du CTA desktop, sinon 2e colonne implicite) */
@media (max-width: 768px) {
    .gas-membre-profile__identity {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        text-align: center;
        justify-items: center;
        padding-top: 0;
        column-gap: 0;
    }
    .gas-membre-profile--no-hero .gas-membre-profile__identity > .gas-membre-profile__avatar {
        margin-top: 0;
    }
    .gas-membre-profile__identity > .gas-membre-profile__avatar {
        grid-column: 1;
        grid-row: 1;
        margin-top: calc(var(--gas-space-unit) * -17.5); /* ~-70px */
        align-self: center;
        justify-self: center;
    }
    .gas-membre-profile__identity > .gas-membre-profile__name {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        text-align: center;
        justify-self: center;
    }
    .gas-membre-profile__identity > .gas-membre-profile__tagline {
        grid-column: 1;
        grid-row: 3;
        text-align: center;
        justify-self: center;
        max-width: 36em;
    }
    .gas-membre-profile__identity > .gas-membre-profile__core-specs {
        grid-column: 1;
        grid-row: 4;
        justify-content: center;
        text-align: center;
        justify-self: center;
    }
    .gas-membre-profile__identity > .gas-membre-profile__badges {
        grid-column: 1;
        grid-row: 5;
        width: 100%;
        max-width: min(calc(var(--gas-space-unit) * 60), 100%);
        margin-top: var(--gas-space-s);
        align-items: stretch;
        justify-self: center;
    }
    .gas-membre-profile__identity > .gas-membre-profile__jump-contact,
    .gas-membre-profile__identity .gas-membre-profile__jump-contact {
        grid-column: 1;
        grid-row: 6;
        justify-self: stretch;
        width: 100%;
        max-width: min(calc(var(--gas-space-unit) * 70), 100%);
        margin-top: var(--gas-space-s);
        text-align: center;
    }
    .gas-membre-profile__identity > .gas-membre-profile__local-links {
        grid-column: 1;
        grid-row: 7;
        justify-content: center;
        justify-self: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gas-membre-profile {
        padding: 0 var(--gas-space-s);
    }

    .gas-membre-profile__hero {
        height: calc(var(--gas-space-unit) * 45); /* 180px */
        border-radius: var(--gas-radius-m);
    }

    .gas-membre-profile__avatar {
        width: calc(var(--gas-space-unit) * 27.5); /* 110px */
        height: calc(var(--gas-space-unit) * 27.5);
        border-width: var(--gas-space-xs);
    }

    .gas-membre-profile__name {
        font-size: var(--gas-text-xl);
    }

    .gas-membre-profile__private-grid {
        grid-template-columns: 1fr;
    }

    .gas-membre-profile__specs {
        grid-template-columns: 1fr;
    }

    .gas-membre-profile__certs {
        grid-template-columns: repeat(auto-fill, minmax(calc(var(--gas-space-unit) * 40), 1fr));
    }

    .gas-membre-profile__section-title {
        font-size: var(--gas-text-l);
    }

    .gas-membre-profile__card {
        padding: var(--gas-space-m);
    }
}

/* =================================================================
   LAYOUT 5 — Psychology Today : 3 colonnes + trust strip + certs full-width
   ================================================================= */

/* Cœur de métier sous la tagline (étoile en couleur d'accent).
   Note : alignement gauche forcé par .gas-membre-profile__identity (grid). */
.gas-membre-profile__core-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gas-space-xs);
}

.gas-membre-profile__core-spec {
    display: inline-flex;
    align-items: center;
    padding: var(--gas-space-xs) var(--gas-space-s);
    border-radius: var(--gas-radius-full);
    background: var(--accent-ultra-light, rgba(200, 160, 42, 0.18));
    color: var(--accent-dark, var(--accent));
    font-size: var(--gas-text-xs);
    font-weight: 600;
    line-height: 1.3;
}

/* Trust strip — bandeau de signaux entre identity et body */
.gas-membre-profile.gas-membre-profile--layout-5 .gas-membre-profile__trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gas-space-m) var(--gas-space-l);
    align-items: center;
    justify-content: center;
    padding: var(--gas-space-m) var(--gas-space-l);
    margin: var(--gas-space-l) 0;
    background: var(--neutral-ultra-light, var(--gas-neutral-100));
    border: 1px solid var(--neutral-light, var(--gas-neutral-200));
    border-radius: var(--gas-radius-l);
}

.gas-membre-profile.gas-membre-profile--layout-5 .gas-membre-profile__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--gas-text-s);
    color: var(--base, var(--gas-text-color));
}

.gas-membre-profile__trust-icon {
    font-size: var(--gas-text-m);
    line-height: 1;
}

.gas-membre-profile__trust-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.25;
}

.gas-membre-profile.gas-membre-profile--layout-5 .gas-membre-profile__trust-label {
    font-size: var(--gas-text-2xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--base-semi-dark, var(--gas-text-color-light));
    font-weight: 600;
}

.gas-membre-profile.gas-membre-profile--layout-5 .gas-membre-profile__trust-value {
    font-weight: 600;
    color: var(--base, var(--gas-text-color));
}

/* Body 3 colonnes : sidebar G | main | sidebar D */
.gas-membre-profile__body--three-col {
    grid-template-columns: 280px minmax(0, 1fr) 320px;
}

/* -----------------------------------------------------------------
   SANS HERO — l'avatar ne doit plus chevaucher une bannière absente
   ----------------------------------------------------------------- */
.gas-membre-profile--no-hero .gas-membre-profile__avatar {
    margin-top: 0;
}
.gas-membre-profile--no-hero .gas-membre-profile__identity {
    padding-top: var(--gas-space-l);
}
.gas-membre-profile--no-hero .gas-membre-profile__identity > .gas-membre-profile__name {
    margin-top: 0;
    align-self: center;
}

/* -----------------------------------------------------------------
   TEMPLATES — skins distincts (classic | compact | editorial)
   ----------------------------------------------------------------- */

/* Compact : une colonne dense, hero plus bas, carte plus serrée */
.gas-membre-profile--template-compact {
    max-width: 760px;
}
.gas-membre-profile--template-compact .gas-membre-profile__hero {
    height: 160px;
    border-radius: var(--gas-radius-m);
}
.gas-membre-profile--template-compact .gas-membre-profile__avatar {
    width: 112px;
    height: 112px;
    margin-top: -56px;
    border-width: 4px;
}
.gas-membre-profile--template-compact.gas-membre-profile--no-hero .gas-membre-profile__avatar {
    margin-top: 0;
}
.gas-membre-profile--template-compact .gas-membre-profile__identity {
    grid-template-columns: 120px 1fr;
    column-gap: var(--gas-space-m);
    padding-block: var(--gas-space-s);
}
.gas-membre-profile--template-compact .gas-membre-profile__body,
.gas-membre-profile--template-compact .gas-membre-profile__body--three-col {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-m);
    grid-template-columns: none;
}
.gas-membre-profile--template-compact .gas-membre-profile__sidebar--left,
.gas-membre-profile--template-compact .gas-membre-profile__sidebar--right,
.gas-membre-profile--template-compact .gas-membre-profile__main {
    width: 100%;
}
.gas-membre-profile--template-compact .gas-membre-profile__card {
    padding: var(--gas-space-s) var(--gas-space-m);
}
.gas-membre-profile--template-compact .gas-membre-profile__section-title {
    font-size: var(--gas-text-m);
}

/* Éditorial : lecture large au centre, sidebars regroupées à droite */
.gas-membre-profile--template-editorial {
    max-width: 1200px;
}
.gas-membre-profile--template-editorial .gas-membre-profile__hero {
    height: 340px;
    border-radius: 0;
    margin-inline: calc(-1 * var(--gas-space-m));
}
.gas-membre-profile--template-editorial .gas-membre-profile__name {
    font-size: var(--gas-text-3xl);
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-weight: 700;
}
.gas-membre-profile--template-editorial .gas-membre-profile__tagline {
    font-size: var(--gas-text-m);
    max-width: 42ch;
}
.gas-membre-profile--template-editorial .gas-membre-profile__body,
.gas-membre-profile--template-editorial .gas-membre-profile__body--three-col {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    grid-template-areas:
        "main right"
        "left right";
    gap: var(--gas-space-xl) var(--gas-space-l);
    align-items: start;
}
.gas-membre-profile--template-editorial .gas-membre-profile__main {
    grid-area: main;
}
.gas-membre-profile--template-editorial .gas-membre-profile__sidebar--right {
    grid-area: right;
}
.gas-membre-profile--template-editorial .gas-membre-profile__sidebar--left {
    grid-area: left;
}
.gas-membre-profile--template-editorial .gas-membre-profile__section {
    margin-bottom: var(--gas-space-l);
}
.gas-membre-profile--template-editorial .gas-membre-profile__section-title {
    font-size: var(--gas-text-l);
    border-bottom: 1px solid var(--neutral-light, #e5e7eb);
    padding-bottom: var(--gas-space-xs);
    margin-bottom: var(--gas-space-m);
}

@media (max-width: 900px) {
    .gas-membre-profile--template-editorial .gas-membre-profile__body,
    .gas-membre-profile--template-editorial .gas-membre-profile__body--three-col {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "right"
            "left";
    }
    .gas-membre-profile--template-editorial .gas-membre-profile__hero {
        margin-inline: 0;
        height: 200px;
    }
}

.gas-membre-profile__sidebar--left,
.gas-membre-profile__sidebar--right {
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-m);
}

/* Quick contact (sidebar gauche) — tokens GAS uniquement (pas de rem/em). */
.gas-membre-profile__quick-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-s);
}

.gas-membre-profile__pro-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-s);
}

.gas-membre-profile__pro-meta-label {
    display: block;
    font-size: var(--gas-text-xs);
    color: var(--gas-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gas-membre-profile__pro-meta-value {
    display: block;
    font-weight: 600;
    font-size: var(--gas-text-s);
    color: var(--gas-text-color);
}

.gas-membre-profile__pro-meta-flag {
    font-size: var(--gas-text-s);
    color: var(--gas-text-color);
}

.gas-membre-profile__quick-contact-link {
    display: flex;
    align-items: center;
    gap: var(--gas-space-s);
    width: 100%;
    box-sizing: border-box;
    color: var(--primary);
    text-decoration: none;
    padding: var(--gas-space-s);
    border-radius: var(--gas-radius-m);
    transition:
        background var(--gas-transition-fast),
        color var(--gas-transition-fast);
    font-size: var(--gas-text-s);
    word-break: break-word;
}

button.gas-membre-profile__email-reveal {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    align-items: flex-start;
}

/* E-mail anti-spam : 2 lignes (action + masque). */
.gas-membre-profile__email-reveal-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gas-space-2xs);
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.gas-membre-profile__email-reveal-label {
    font-weight: 600;
    font-size: var(--gas-text-s);
}

.gas-membre-profile__email-mask {
    color: var(--gas-text-secondary);
    font-size: var(--gas-text-xs);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gas-membre-profile__email-noscript {
    display: block;
    margin-top: 4px;
    font-size: var(--gas-text-xs);
    color: var(--base-semi-dark, #6b7280);
}

.gas-membre-profile__quick-contact-link:hover,
.gas-membre-profile__quick-contact-link:focus-visible {
    background: var(--neutral-ultra-light);
    color: var(--accent-dark, var(--accent));
    outline: none;
}

.gas-membre-profile__quick-contact-link svg {
    flex-shrink: 0;
    color: var(--accent, currentColor);
}

/* Section certificats (full width, conteneur de l'app React) */
.gas-membre-profile__section--booking {
    margin-block: var(--gas-space-6, 24px);
}

.gas-membre-profile__booking-widgets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-4, 16px);
}

.gas-membre-profile__booking-embed {
    position: relative;
    width: 100%;
    min-height: 520px;
    border: 1px solid var(--neutral-light, #e5e7eb);
    border-radius: var(--gas-radius-m);
    overflow: hidden;
    background: var(--neutral-ultra-light, #f8fafc);
}

.gas-membre-profile__booking-iframe {
    display: block;
    width: 100%;
    min-height: 520px;
    height: 620px;
    border: 0;
}

.gas-membre-profile__booking-fallback {
    margin: var(--gas-space-s) 0 0;
}

.gas-membre-profile__section--certs {
    margin-top: var(--gas-space-l);
}

/* Responsive : tablette → 2 cols (sidebar gauche fusionne sous le main) */
@media (max-width: 1100px) {
    .gas-membre-profile__body--three-col {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
    .gas-membre-profile__sidebar--left {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .gas-membre-profile__sidebar--left > .gas-membre-profile__card {
        flex: 1 1 240px;
    }
}

/* Responsive : mobile → 1 col, sidebar droite remontée */
@media (max-width: 900px) {
    .gas-membre-profile__body--three-col {
        grid-template-columns: 1fr;
    }
    .gas-membre-profile__sidebar--right {
        order: -1;
    }
    .gas-membre-profile__sidebar--left {
        flex-direction: column;
    }
    .gas-membre-profile__sidebar--left > .gas-membre-profile__card {
        flex: 1 1 auto;
    }
}

@media (max-width: 600px) {
    .gas-membre-profile__trust-strip {
        gap: var(--gas-space-s) var(--gas-space-m);
        padding: var(--gas-space-s) var(--gas-space-m);
    }
    .gas-membre-profile__trust-item {
        font-size: var(--gas-text-xs);
    }
}

/* -----------------------------------------------------------------
   Renforcement de spécificité badges identité (le thème WP peut
   écraser les styles génériques `.gas-membre-profile__badge`)
   ----------------------------------------------------------------- */
.gas-membre-profile.gas-membre-profile--layout-5 .gas-membre-profile__badges {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--gas-space-xs);
    margin-top: var(--gas-space-s);
    /* Desktop : ancré sous l’avatar (colonne gauche) — cf. .gas-membre-profile__badges */
}

.gas-membre-profile.gas-membre-profile--layout-5 .gas-membre-profile__site-chip {
    width: 100%;
}

.gas-membre-profile.gas-membre-profile--layout-5 a.gas-membre-profile__badge,
.gas-membre-profile.gas-membre-profile--layout-5 span.gas-membre-profile__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gas-space-xs);
    padding: 4px 14px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: var(--gas-radius-full);
    font-size: var(--gas-text-xs);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.gas-membre-profile.gas-membre-profile--layout-5 .gas-membre-profile__badge--secondary {
    background: var(--secondary-ultra-light);
    color: var(--secondary);
    border-color: var(--secondary-light);
}

.gas-membre-profile.gas-membre-profile--layout-5 a.gas-membre-profile__badge--link:hover {
    background: var(--secondary-light);
    text-decoration: none;
}

/* -----------------------------------------------------------------
   Section privée admin : collapsible <details> en bas de page
   ----------------------------------------------------------------- */
.gas-membre-profile__private-details {
    margin: var(--gas-space-l) 0 0;
    border: 1px solid var(--neutral-light);
    border-radius: var(--gas-radius-l);
    background: var(--neutral-ultra-light);
    overflow: hidden;
}

.gas-membre-profile__private-details > summary {
    cursor: pointer;
    list-style: none;
    padding: var(--gas-space-s) var(--gas-space-m);
    display: flex;
    align-items: center;
    gap: var(--gas-space-s);
    font-size: var(--gas-text-s);
    color: var(--base-semi-dark);
    font-weight: 600;
    border: 0;
    background: transparent;
    user-select: none;
    transition: background 120ms ease;
}

.gas-membre-profile__private-details > summary::-webkit-details-marker {
    display: none;
}

.gas-membre-profile__private-details > summary:hover {
    background: var(--neutral-light, #ececec);
}

.gas-membre-profile__private-details > summary > span:nth-of-type(1) {
    flex: 1;
}

.gas-membre-profile__private-details .gas-membre-profile__private-toggle {
    transition: transform 200ms ease;
    color: var(--base-semi-dark);
    flex: 0 0 auto;
}

.gas-membre-profile__private-details[open] .gas-membre-profile__private-toggle {
    transform: rotate(180deg);
}

.gas-membre-profile__private--in-details {
    padding: var(--gas-space-m);
    background: white;
    border-top: 1px solid var(--neutral-light);
}

.gas-membre-profile__private--in-details .gas-membre-profile__private-grid {
    margin: 0;
}

/* -----------------------------------------------------------------
   Activités animées : grille de cartes (full-width sous certifs)
   ----------------------------------------------------------------- */
.gas-membre-profile__section--activites {
    margin-top: var(--gas-space-l);
}

.gas-membre-profile__activites-group {
    margin-top: var(--gas-space-m);
}

.gas-membre-profile__activites-group + .gas-membre-profile__activites-group {
    margin-top: var(--gas-space-l);
}

.gas-membre-profile__activites-subtitle {
    font-size: var(--gas-text-m);
    font-weight: 600;
    color: var(--base);
    margin: 0 0 var(--gas-space-s);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: baseline;
    gap: var(--gas-space-s);
}

.gas-membre-profile__activites-count {
    font-size: var(--gas-text-xs);
    font-weight: 500;
    color: var(--base-semi-dark);
    text-transform: none;
    letter-spacing: 0;
}

/* Cards compactes — layout horizontal (image left + body right), 3 par ligne en desktop */
.gas-membre-profile__activites-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gas-space-s);
}

.gas-membre-profile__activites-item {
    display: flex;
}

.gas-membre-profile__activite-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    width: 100%;
    background: white;
    border: 1px solid var(--neutral-light);
    border-radius: var(--gas-radius-m);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gas-membre-profile__activite-card:hover,
.gas-membre-profile__activite-card:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    outline: none;
}

.gas-membre-profile__activite-card--past {
    opacity: 0.95;
}

.gas-membre-profile__activite-card--past:hover {
    opacity: 1;
}

.gas-membre-profile__activite-thumb {
    width: 80px;
    height: 100%;
    min-height: 80px;
    background: var(--neutral-ultra-light);
    overflow: hidden;
    flex-shrink: 0;
}

.gas-membre-profile__activite-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gas-membre-profile__activite-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--gas-text-xl);
    color: var(--neutral-light);
}

.gas-membre-profile__activite-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-2xs);
    min-width: 0;
}

.gas-membre-profile__activite-type {
    font-size: var(--gas-text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-dark, var(--accent));
}

.gas-membre-profile__activite-title {
    font-size: var(--gas-text-xs);
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--base);
    /* clamp à 2 lignes pour garder la card compacte même avec long titre */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gas-membre-profile__activite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    font-size: var(--gas-text-2xs);
    color: var(--base-semi-dark);
    margin-top: 4px;
    line-height: 1.4;
}

.gas-membre-profile__activite-date,
.gas-membre-profile__activite-lieu {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    /* tronquer si trop long */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tablette : 2 par ligne */
@media (max-width: 900px) {
    .gas-membre-profile__activites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile : 1 par ligne */
@media (max-width: 600px) {
    .gas-membre-profile__activites-grid {
        grid-template-columns: 1fr;
    }
}


/* Engagements dans l'association (groupes, cellules, comité, commissions). */
.gas-membre-profile__engagement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gas-space-2xs);
}

.gas-membre-profile__engagement {
    display: flex;
    flex-direction: column;
}

.gas-membre-profile__engagement-label {
    font-weight: 600;
}

.gas-membre-profile__engagement-detail {
    color: var(--gas-color-text-muted);
}
