.fv-pk-app, .fv-pk-mod { font-family: inherit; width: 100%; }
.fv-pk-app *, .fv-pk-mod * { font-family: inherit; }
.fv-pk-app button, .fv-pk-app input, .fv-pk-app textarea,
.fv-pk-mod button, .fv-pk-mod input, .fv-pk-mod textarea {
    font-family: inherit !important;
}

.fv-pk-app {
    background: #fff;
    border: 1px solid #f0c4d8;
    border-radius: 12px;
    overflow: hidden;
}

/* En-tête */
.fv-pk-header {
    background: #C8A2C8;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.fv-pk-logo,
.fv-pk-logo img,
.fv-pk-logo source {
    display: block !important;
    max-height: 120px !important;
    max-width: 480px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 4px !important;
}
.fv-pk-progress { margin: 2px 0 0; font-size: 12px; color: #5a3a5a; }
.fv-pk-badge {
    background: #e91e8c;
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Onglets 1..15 */
.fv-pk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 18px;
    background: #fff8fc;
    border-bottom: 1px solid #f0d6e8;
}
.fv-pk-tab {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #f0c4d8;
    transition: transform 0.1s;
}
.fv-pk-tab:hover:not(:disabled) { transform: translateY(-2px); }
/* Faites : fond blanc, texte rose */
.fv-pk-tab-done { background: #fff; color: #e91e8c; border-color: #e91e8c; }
/* À faire : fond rose, texte blanc */
.fv-pk-tab-todo { background: #e91e8c; color: #fff; border-color: #e91e8c; }
/* En attente de validation */
.fv-pk-tab-pending { background: #fff; color: #b8860b; border-color: #e0c060; }
/* Verrouillées : grisées */
.fv-pk-tab-locked { background: #f1f1f1; color: #bbb; border-color: #e5e5e5; cursor: not-allowed; }
.fv-pk-tab.active { outline: 3px solid #4a1942; outline-offset: 1px; }

/* Panneau d'étape */
.fv-pk-panel { padding: 18px; }
.fv-pk-step-title { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #4a1942; }
.fv-pk-instructions {
    background: #fff8fc;
    border-left: 3px solid #e91e8c;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #4a1942;
    margin-bottom: 14px;
}
.fv-pk-loading, .fv-pk-empty { color: #9c6b8c; font-size: 13px; text-align: center; padding: 20px; margin: 0; }

/* Statuts */
.fv-pk-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.fv-pk-status-pending  { background: #fffbea; color: #8a6d00; border: 1px solid #f0e0a0; }
.fv-pk-status-rejected { background: #fdf3f2; color: #c0392b; border: 1px solid #f5c6c0; }
.fv-pk-status-done     { background: #edfaef; color: #1a7a3a; border: 1px solid #b8e6c4; }
.fv-pk-status-guest    { background: #f0f6fc; color: #2271b1; border: 1px solid #c5d9ec; }

/* Zone d'envoi */
.fv-pk-submit-box {
    background: #fff0f6;
    border: 1px solid #f0c4d8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
}
.fv-pk-submit-rule { margin: 0 0 10px; font-size: 12px; color: #9c6b8c; line-height: 1.5; }
#fv-pk-note {
    width: 100%;
    border: 1px solid #f0c4d8;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
#fv-pk-send-btn {
    background: #e91e8c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
#fv-pk-send-btn:hover { background: #c2185b; }
#fv-pk-send-btn:disabled { background: #ccc; cursor: default; }

/* Galerie */
.fv-pk-gallery-wrap { border-top: 1px solid #f0d6e8; padding-top: 14px; }
.fv-pk-gallery-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #4a1942; }
.fv-pk-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.fv-pk-card {
    background: #fff0f6;
    border: 1px solid #f0c4d8;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 8px;
}
.fv-pk-card-photo {
    height: 140px;
    background-color: #fce7f3;
    background-size: cover;
    background-position: center;
}
.fv-pk-card-name {
    display: block;
    padding: 6px 8px 0;
    font-size: 12px;
    font-weight: 700;
    color: #4a1942;
    text-decoration: none;
}
a.fv-pk-card-name:hover { text-decoration: underline; }
.fv-pk-card-note { margin: 2px 8px 0; font-size: 11px; color: #9c6b8c; }
.fv-pk-more-btn {
    display: block;
    margin: 14px auto 0;
    background: #fff;
    border: 1px solid #f0c4d8;
    color: #4a1942;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 12px;
    cursor: pointer;
}
.fv-pk-more-btn:hover { background: #fff0f6; }

/* Modération */
.fv-pk-mod-title { font-size: 15px; font-weight: 700; color: #4a1942; margin-bottom: 14px; }
.fv-pk-mod-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #f0c4d8;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.fv-pk-mod-photo {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    background-color: #fce7f3;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.fv-pk-mod-info { flex: 1; min-width: 160px; }
.fv-pk-mod-who  { margin: 0; font-size: 14px; color: #4a1942; }
.fv-pk-mod-date { margin: 2px 0 0; font-size: 11px; color: #9c6b8c; }
.fv-pk-mod-note { margin: 6px 0 0; font-size: 12px; color: #5a3a5a; font-style: italic; }
.fv-pk-mod-actions { display: flex; flex-direction: column; gap: 6px; }
.fv-pk-approve-btn, .fv-pk-reject-btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #f0c4d8;
    white-space: nowrap;
}
.fv-pk-approve-btn { background: #1a7a3a; color: #fff; border-color: #156430; }
.fv-pk-reject-btn  { background: #fff; color: #c0392b; border-color: #f5c6c0; }
.fv-pk-reject-box { width: 100%; margin-top: 8px; }
.fv-pk-reject-reason {
    width: 100%;
    border: 1px solid #f5c6c0;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    box-sizing: border-box;
    margin-bottom: 6px;
}
.fv-pk-reject-confirm {
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .fv-pk-gallery { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .fv-pk-mod-actions { flex-direction: row; width: 100%; }
    .fv-pk-approve-btn, .fv-pk-reject-btn { flex: 1; }
}

/* Agrandissement photo au clic */
.fv-pk-zoomable { cursor: zoom-in; }

.fv-pk-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 5, 15, 0.9);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.fv-pk-zoom-overlay.active { display: flex; }
#fv-pk-zoom-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
#fv-pk-zoom-close {
    position: fixed;
    top: 18px;
    right: 18px;
    background: #fff;
    color: #4a1942;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
}

/* Badge de profil — inséré inline dans la ligne de méta du profil
   (@pseudo • Membre depuis... • Connecté(e)) par fv-parkours-notif-fix.js */
.fv-pk-profile-badge { display: inline-block; }
.fv-pk-profile-badge-content {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}
.fv-pk-badge-chip {
    display: inline-block;
    background: #e91e8c;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Pop-up de règles, même mécanisme que Duels */
.fv-pk-rules-btn {
    display: block;
    margin: 0 0 12px;
    font-size: 12px;
    padding: 8px 14px;
    background: #fdf6fd;
    color: #8a4f8a;
    border: 1px solid #e0c4e0;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}
.fv-pk-rules-btn:hover { background: #f5e6f5; }

.fv-pk-rules-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.6);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fv-pk-rules-overlay.active { display: flex; }

.fv-pk-rules-popup {
    background: #fff;
    border-radius: 14px;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}
.fv-pk-rules-popup h3 { margin: 0 0 12px; font-size: 16px; color: #4a1942; }
.fv-pk-rules-popup h4 { margin: 16px 0 6px; font-size: 13px; color: #8a4f8a; }
.fv-pk-rules-popup p { margin: 0 0 8px; font-size: 13px; color: #5a3a5a; line-height: 1.6; }
.fv-pk-rules-popup ul { margin: 0 0 8px; padding-left: 20px; font-size: 13px; color: #5a3a5a; line-height: 1.6; }
.fv-pk-rules-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 16px;
    color: #9c6b8c;
    cursor: pointer;
}

.fv-pk-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    font-style: italic;
    color: #5a3a5a;
}

.fv-pk-intro {
    padding: 16px 18px;
    background: #fdf6fd;
    border-bottom: 1px solid #e0c4e0;
}
.fv-pk-intro p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #5a3a5a;
    line-height: 1.6;
}
.fv-pk-intro p:last-child { margin-bottom: 0; }

.fv-pk-quit-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.6);
    color: #5a3a5a;
    border: 1px solid rgba(90,58,90,0.3);
    border-radius: 16px;
    cursor: pointer;
}
.fv-pk-quit-btn:hover { background: #fff; color: #c0392b; border-color: #f5c6c0; }

.fv-pk-show-intro-btn {
    display: inline-block;
    margin-top: 6px;
    margin-left: 6px;
    font-size: 11px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.6);
    color: #5a3a5a;
    border: 1px solid rgba(90,58,90,0.3);
    border-radius: 16px;
    cursor: pointer;
}
.fv-pk-show-intro-btn:hover { background: #fff; }

/* Écran de fin — étape 17 validée, arrivée à la Cité d'Émeraude */
.fv-pk-finale {
    text-align: center;
    padding: 24px 18px;
    background: linear-gradient(180deg, #fff8fc 0%, #f5e6f5 100%);
    border: 1px solid #C8A2C8;
    border-radius: 12px;
    margin-bottom: 14px;
}
.fv-pk-finale-emoji { font-size: 32px; margin: 0 0 8px; }
.fv-pk-finale-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #4a1942;
}
.fv-pk-finale-text {
    margin: 0;
    font-size: 13px;
    color: #5a3a5a;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Preuve attendue — champ dédié, distinct des consignes narratives */
.fv-pk-expected-proof {
    background: #fdf6fd;
    border: 1px dashed #C8A2C8;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.fv-pk-expected-proof-label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    color: #8a4f8a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.fv-pk-expected-proof-text {
    margin: 0;
    font-size: 12px;
    color: #4a1942;
    line-height: 1.5;
}
.fv-pk-mod-expected {
    display: block;
    margin: 6px 0;
    padding: 6px 10px;
    background: #fdf6fd;
    border: 1px dashed #C8A2C8;
    border-radius: 6px;
    font-size: 12px;
    color: #4a1942;
    font-weight: 600;
}

/* Rangée de boutons du bandeau : Accueil, Règles, Quitter côte à côte */
.fv-pk-header-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.fv-pk-header-btns .fv-pk-show-intro-btn,
.fv-pk-header-btns .fv-pk-rules-btn,
.fv-pk-header-btns .fv-pk-quit-btn {
    margin: 0;
}

/* Pop-up accueil, même mécanisme visuel que la pop-up de règles */
.fv-pk-intro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.6);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fv-pk-intro-overlay.active { display: flex; }

.fv-pk-intro-popup {
    background: #fff;
    border-radius: 14px;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}
.fv-pk-intro-popup p { margin: 0 0 12px; font-size: 13px; color: #5a3a5a; line-height: 1.6; }
.fv-pk-intro-popup p:last-child { margin-bottom: 0; }
.fv-pk-intro-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 16px;
    color: #9c6b8c;
    cursor: pointer;
}

/* Écran d'accueil complet, avant de rejoindre la route */
.fv-pk-landing {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
}
.fv-pk-landing-img,
.fv-pk-landing-img img,
.fv-pk-landing-img source {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}
.fv-pk-landing-text {
    padding: 20px 22px;
    background: linear-gradient(180deg, #fff8fc 0%, #f5e6f5 100%);
}
.fv-pk-landing-text p {
    margin: 0 0 14px;
    font-size: 14px;
    color: #4a1942;
    line-height: 1.7;
}
.fv-pk-join-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    background: #e91e8c;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    margin-top: 6px;
}
.fv-pk-join-btn:hover { background: #c2185b; }
