/* ============================================================
   PAGE — PARTICIPANT (profil 2026)
   ============================================================ */

.participant-page {
    background: #F2F2F2;
    color: #000;
}

.participant-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Back link (same pattern as challengers) --- */
.participant-content .back {
    color: #3C454D;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 325;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;
    text-decoration: underline;
}

/* --- Two-column layout --- */
.participant-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

/* ── Left column (sticky) ─────────────────────────── */
.participant-left {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0; /* empêche le slick-track d'exploser la colonne */
}

/* Header: identity + socials */
.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.participant-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Même design token que .club-card-city (page-home.css), couleur différente (#fff vs #000) */
.participant-name {
    font-family: var(--font-display-black-italic);
    font-size: 76px;
    line-height: 76px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* Mutualisé avec .challenger-card-name (components.css) — ajouté directement en classe HTML */

.participant-socials {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-self: flex-end; /* aligné en bas du bloc identity */
}

.participant-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.participant-social-link:hover {
    opacity: 0.8;
}

/* --- Photo slider — carré 1:1 (≈552px sur desktop) --- */
.participant-left .challenger-photos {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* Slick doit remplir entièrement le conteneur carré */
.participant-left .challenger-photos .slick-list,
.participant-left .challenger-photos .slick-track,
.participant-left .challenger-photos .slick-slide,
.participant-left .challenger-photos .slick-slide > div {
    height: 100%;
}

.participant-left .challenger-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider arrows (SVG buttons) */
.participant-slider-prev,
.participant-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #000;
    transition: background 0.2s;
}

.participant-slider-prev:hover,
.participant-slider-next:hover {
    background: #fff;
}

.participant-slider-prev {
    left: 12px;
}

.participant-slider-next {
    right: 12px;
}

/* Slider dots */
.participant-left .challenger-photos .slick-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.participant-left .challenger-photos .slick-dots li {
    background: none;
    border: none;
    width: auto;
    height: auto;
    text-indent: 0;
    display: flex;
}

.participant-left .challenger-photos .slick-dots li button {
    font-size: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.participant-left .challenger-photos .slick-dots li.slick-active button {
    background: #fff;
}

/* --- Actions bar (likes + share + vote) --- */
.participant-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.participant-likes {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* h3/black/desktop — même famille que .section-title mais line-height 56px */
.participant-likes-count {
    font-family: var(--font-display-black-italic);
    font-size: 46px;
    font-weight: 900;
    line-height: 56px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-grey-grey18);
}

.participant-actions-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.participant-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-grey-grey18);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.participant-share-btn:hover {
    opacity: 0.85;
}

/* Vote button: override .btn defaults for context */
.participant-actions .vote.btn {
    white-space: nowrap;
    font-size: 20px;
    padding: 8px 20px 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.participant-actions .vote.btn .vote-heart-icon {
    display: none;
    flex-shrink: 0;
    transform: translateY(-1px);
}

.participant-actions .vote.btn .vote-label-voted {
    display: none;
}

/* Voted state — yellow accent so it stands out vs the black idle button */
.participant-actions .vote.btn.voted {
    background: var(--color-primary);
    color: #000;
}

.participant-actions .vote.btn.voted .vote-heart-icon {
    display: inline-flex;
}

.participant-actions .vote.btn.voted .vote-label-idle {
    display: none;
}

.participant-actions .vote.btn.voted .vote-label-voted {
    display: inline;
}

/* ── Right column ─────────────────────────────────── */
.participant-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Motivation title — inside the card */
.motivation-title {
    font-family: var(--font-display-black-italic);
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    margin: 0 0 24px;
}

/* Motivation card — flex: 1 fills the stretched right column (= left column height) */
.motivation-block {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    padding: 32px;
    box-sizing: border-box;
    flex: 1;
}

.motivation-text {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 325;
    line-height: 26px;
    color: var(--color-grey-grey18);
    word-break: break-word;
}

/* Short text container — fade positioned relative to it */
.motivation-short {
    position: relative;
    padding-bottom: 4px;
}

/* Fade at bottom of truncated text */
.motivation-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

/* "Voir plus" button */
.motivation-voir-plus {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 325;
    line-height: 18px;
    color: #3C454D;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.motivation-voir-plus:hover {
    color: #000;
}

/* ── Barre compte (email + actions) ──────────────── */
.participant-account-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
}

.participant-account-infos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 48px;
}

.participant-account-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.participant-account-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 325;
    line-height: 14px;
    color: #A0A4A6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.participant-account-value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 325;
    line-height: 18px;
    color: var(--color-grey-grey18);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.participant-account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    justify-items: end;
    align-content: start;
}

.participant-account-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 325;
    line-height: 18px;
    color: #3C454D;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.participant-account-link:hover {
    color: #000;
}

.participant-account-link--danger {
    color: var(--color-error);
}

.participant-account-link--danger:hover {
    color: #922B21;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 968px) {
    .participant-content {
        padding: 140px 24px 0;
    }

    .participant-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .participant-left {
        position: static; /* pas de sticky sur mobile */
    }

    .participant-name {
        font-size: 48px;
    }

    .motivation-title {
        font-size: 32px;
    }

    .participant-right {
        display: block; /* pas de flex stretch sur mobile, hauteur naturelle */
    }

    .motivation-block {
        padding: 24px;
        flex: unset;
        margin-left: -24px;
        margin-right: -24px;
    }

    .participant-account-bar {
        flex-direction: column;
        gap: 24px;
        margin-top: 32px;
        padding: 24px;
        border-top: none;
        background: #fff;
        margin-left: -24px;
        margin-right: -24px;
    }

    .participant-account-infos {
        grid-template-columns: 1fr 1fr;
        gap: 16px 24px;
    }

    .participant-account-actions {
        grid-template-columns: 1fr 1fr;
        gap: 16px 24px;
        justify-items: start;
    }
}

@media (max-width: 480px) {
    .participant-name {
        font-size: 40px;
        letter-spacing: 1px;
    }

    .participant-account-infos,
    .participant-account-actions {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: start;
    }
}
