/* =================================================================
   MEMBRE PROFILE — gas-membre-profile
   Professional therapist profile page
   Tokens : --gas-* (config/gas-design-tokens.css). Le bloc bridge
   ci-dessous expose les anciens noms (--space-*, --primary, etc.)
   pour ne pas avoir à réécrire toutes les déclarations de ce fichier.
   ================================================================= */

/* -----------------------------------------------------------------
   BRIDGE legacy → gas-* (hérités par toute la sous-arbre profil)
   ----------------------------------------------------------------- */
.gas-membre-profile {
    --space-xs: var(--gas-space-xs);
    --space-s: var(--gas-space-s);
    --space-m: var(--gas-space-m);
    --space-l: var(--gas-space-l);
    --space-xl: var(--gas-space-xl);
    --radius-s: var(--gas-radius-s);
    --radius-m: var(--gas-radius-m);
    --radius-l: var(--gas-radius-l);
    --font-family: var(--gas-font-family);
    --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(--space-m);
    font-family: var(--font-family, system-ui, sans-serif);
    color: var(--base);
    line-height: 1.65;
}

/* -----------------------------------------------------------------
   HERO BANNER
   ----------------------------------------------------------------- */
.gas-membre-profile__hero {
    position: relative;
    height: 280px;
    border-radius: var(--radius-l, 12px);
    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;
    grid-template-columns: 180px 1fr;
    column-gap: var(--space-l);
    row-gap: var(--space-xs);
    align-items: end;
    padding: var(--space-m) var(--space-m) var(--space-m);
    z-index: 2;
    text-align: left;
    min-height: 100px;
}

.gas-membre-profile__avatar {
    grid-column: 1;
    grid-row: 1 / span 5;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 5px solid white;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    /* Seul l'avatar chevauche le hero — pas le reste du bloc identity */
    margin-top: -90px;
    align-self: start;
    flex-shrink: 0;
}

.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: 2.4em;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.gas-membre-profile__name {
    grid-column: 2;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.15;
    align-self: end;
}

.gas-membre-profile__tagline {
    grid-column: 2;
    font-size: 1.05em;
    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;
    margin: 4px 0 0;
    justify-content: flex-start;
}

.gas-membre-profile__badges {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-s);
    margin: 4px 0 0;
    justify-content: flex-start;
}

.gas-membre-profile__badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-m);
    background: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875em;
    font-weight: 600;
    border: 1px solid 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 0.2s, color 0.2s;
}

.gas-membre-profile__badge--link:hover {
    background: var(--secondary);
    color: white;
    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;
}

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

.gas-membre-profile__private-banner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--accent);
    color: white;
    padding: var(--space-xs) var(--space-m);
    border-radius: var(--radius-m, 8px);
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: var(--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(--space-s) var(--space-l);
}

.gas-membre-profile__private-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* -----------------------------------------------------------------
   ADDRESSES
   ----------------------------------------------------------------- */
.gas-membre-profile__address {
    padding: var(--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: 0.95em;
    color: var(--base);
}

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

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

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

.gas-membre-profile__direction-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 100px;
    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(--space-m);
    border-radius: var(--radius-m, 8px);
    overflow: hidden;
    border: 1px solid var(--neutral-light);
}

.gas-membre-profile__map {
    width: 100%;
    height: 220px;
    display: block;
}

.gas-membre-profile__map .mapboxgl-map,
.gas-membre-profile__map .mapboxgl-canvas-container,
.gas-membre-profile__map .mapboxgl-canvas,
.gas-membre-profile__map canvas {
    border-radius: var(--radius-m, 8px);
}

.gas-membre-profile__map-marker {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

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

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

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

.gas-membre-profile__stat-label {
    font-size: 0.78em;
    color: var(--base-semi-dark);
    margin-top: 2px;
}

/* -----------------------------------------------------------------
   WEBSITE LINK
   ----------------------------------------------------------------- */
.gas-membre-profile__website-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95em;
    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(--space-s);
}

.gas-membre-profile__spec {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gas-membre-profile__spec-title {
    font-size: 0.82em;
    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: 5px;
}

.gas-membre-profile__spec-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-ultra-light);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.82em;
    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(--space-m);
}

.gas-membre-profile__cert {
    background: white;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-l, 12px);
    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: 180px;
    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(--space-s) var(--space-m);
}

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

.gas-membre-profile__cert-year {
    font-size: 0.8em;
    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(--radius-l, 12px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.gas-membre-profile__modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--base);
    font-size: 1.4em;
    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(--space-l);
    }

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

/* Responsive identité : passer en colonne centrée sur tablette/mobile */
@media (max-width: 768px) {
    .gas-membre-profile__identity {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding-top: 0;
    }
    .gas-membre-profile__identity > .gas-membre-profile__avatar {
        grid-column: 1;
        grid-row: auto;
        margin-top: -70px;
        align-self: center;
    }
    .gas-membre-profile__identity > .gas-membre-profile__name,
    .gas-membre-profile__identity > .gas-membre-profile__tagline,
    .gas-membre-profile__identity > .gas-membre-profile__core-specs,
    .gas-membre-profile__identity > .gas-membre-profile__badges {
        grid-column: 1;
        justify-content: center;
        text-align: center;
    }
}

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

    .gas-membre-profile__hero {
        height: 180px;
        border-radius: var(--radius-m, 8px);
    }

    .gas-membre-profile__avatar {
        width: 110px;
        height: 110px;
        border-width: 4px;
    }

    .gas-membre-profile__name {
        font-size: 1.6em;
    }

    .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(160px, 1fr));
    }

    .gas-membre-profile__section-title {
        font-size: 1.2em;
    }

    .gas-membre-profile__card {
        padding: var(--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(--space-xs);
}

.gas-membre-profile__core-spec {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-ultra-light, rgba(200, 160, 42, 0.18));
    color: var(--accent-dark, var(--accent));
    font-size: 0.85em;
    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(--space-m, 16px) var(--space-l, 24px);
    align-items: center;
    justify-content: center;
    padding: var(--space-m, 16px) var(--space-l, 24px);
    margin: var(--space-l, 24px) 0;
    background: var(--neutral-ultra-light, var(--gas-neutral-100));
    border: 1px solid var(--neutral-light, var(--gas-neutral-200));
    border-radius: var(--radius-l, 12px);
}

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

.gas-membre-profile__trust-icon {
    font-size: 1.15em;
    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: 0.72em;
    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;
}

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

/* Quick contact (sidebar gauche) */
.gas-membre-profile__quick-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gas-membre-profile__quick-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #2c3e50);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: var(--radius-m, 6px);
    transition: background 120ms ease, color 120ms ease;
    font-size: 0.95em;
    word-break: break-word;
}

.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--certs {
    margin-top: var(--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(--space-s) var(--space-m);
        padding: var(--space-s) var(--space-m);
    }
    .gas-membre-profile__trust-item {
        font-size: 0.85em;
    }
}

/* -----------------------------------------------------------------
   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-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs, 6px) var(--space-s, 10px);
    margin-top: var(--space-xs, 6px);
}

.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: 4px;
    padding: 4px 14px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    border-radius: 100px;
    font-size: 0.875em;
    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(--space-l) 0 0;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-l, 12px);
    background: var(--neutral-ultra-light);
    overflow: hidden;
}

.gas-membre-profile__private-details > summary {
    cursor: pointer;
    list-style: none;
    padding: var(--space-s) var(--space-m);
    display: flex;
    align-items: center;
    gap: var(--space-s);
    font-size: 0.92em;
    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(--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(--space-l);
}

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

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

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

.gas-membre-profile__activites-count {
    font-size: 0.85em;
    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(--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(--radius-m, 8px);
    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: 1.6em;
    color: var(--neutral-light);
}

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

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

.gas-membre-profile__activite-title {
    font-size: 0.88em;
    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: 0.75em;
    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;
    }
}

