.pj-header {
    height: 70px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8eee9;
    background: white;
}

.pj-logo {
    font-size: 25px;
    font-weight: 900;
    color: #17251c;
    text-decoration: none;
    letter-spacing: -1px;
}

.pj-logo span {
    color: #16a34a;
}

.pj-home {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
}

.pj-container {
    width: min(680px, 92%);
    margin: 20px auto 45px;
    padding-top: 0 !important;
}

.pj-intro {
    text-align: center;
    margin-bottom: 30px;
}

.pj-category {
    color: #16a34a;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.pj-intro h1 {
    font-size: 38px;
    margin: 10px 0;
    color: #17251c;
    letter-spacing: 1.5px;
}

.pj-description {
    color: #64748b;
    line-height: 1.6;
    max-width: 520px;
    margin: auto;
}

.pj-game {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.pj-progress-label {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 9px;
}

.pj-progress-label strong {
    color: #16a34a;
}

.pj-progress-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.pj-progress-fill {
    height: 100%;
    width: 0%;
    background: #16a34a;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.pj-career-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 16px;
    gap: 10px;
}

.pj-career-header h2,
.pj-guess-section h2 {
    font-size: 18px;
    color: #17251c;
    margin: 0;
}

#passages-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f2;
    padding: 6px 10px;
    border-radius: 20px;
}

.pj-clubs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pj-club {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fbfdfb;
}

.pj-club-number {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #15803d;
    border-radius: 9px;
    font-weight: 800;
}

.pj-club-name {
    font-weight: 700;
    color: #17251c;
}

.pj-club-year {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

.pj-loading {
    color: #64748b;
    text-align: center;
    padding: 20px;
}

.pj-reveal-button {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #16a34a;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.pj-reveal-button:hover:not(:disabled) {
    background: #15803d;
}

.pj-reveal-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pj-guess-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

#guess-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

#guess-input {
    min-width: 0;
    flex: 1;
    padding: 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    outline: none;
    font-size: 14px;
}

#guess-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

#guess-button {
    padding: 0 24px;
    border: none;
    border-radius: 9px;
    background: #17251c;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

#guess-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pj-message {
    min-height: 20px;
    font-size: 13px;
    margin-top: 12px;
    color: #dc2626;
}

.pj-give-up {
    display: block;
    margin: 10px auto 0;
    border: none;
    background: none;
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}

.pj-result {
    margin-top: 25px;
    padding: 22px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.pj-result h2 {
    color: #15803d;
    margin: 8px 0 18px;
}

.pj-result button {
    border: none;
    border-radius: 9px;
    background: #16a34a;
    color: white;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.pj-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 25px;
}

@media (max-width: 500px) {
    .pj-container {
        margin: 25px auto;
    }

    .pj-game {
        padding: 18px;
    }

    .pj-intro h1 {
        font-size: 31px;
    }

    #guess-form {
        flex-direction: column;
    }

    #guess-button {
        padding: 13px;
    }
}

/* Frise chronologique */

.pj-timeline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    padding: 20px 5px;
    scrollbar-width: thin;
}

.pj-timeline-item {
    flex: 0 0 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.pj-logo-container {
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pj-club-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.pj-club-name {
    font-size: 14px;
    font-weight: 700;
    color: #17251c;
    line-height: 1.3;
}

.pj-club-year {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

.pj-timeline-arrow {
    flex: 0 0 auto;
    font-size: 30px;
    font-weight: 600;
    color: #16a34a;
    margin-top: -35px;
}

.pj-timeline::-webkit-scrollbar {
    height: 5px;
}

.pj-timeline::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

/* Autocomplétion des joueurs */

.pj-autocomplete {
    position: relative;
    flex: 1;
    min-width: 0;
}

.pj-autocomplete #guess-input {
    width: 100%;
    box-sizing: border-box;
}

.pj-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
}

.pj-suggestions.active {
    display: block;
}

.pj-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #17251c;
    text-align: left;
}

.pj-suggestion:hover {
    background: #f0fdf4;
    color: #16a34a;
}

.pj-suggestion + .pj-suggestion {
    border-top: 1px solid #f1f5f2;
}

.pj-no-suggestions {
    padding: 12px 15px;
    color: #64748b;
    font-size: 13px;
}

/* Fenêtre personnalisée d'abandon */

.pj-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pj-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 18, 0.65);
    backdrop-filter: blur(4px);
}

.pj-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 32px 26px;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: pj-modal-appear 0.2s ease-out;
}

.pj-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 30px;
    font-weight: 900;
}

.pj-modal-card h2 {
    color: #17251c;
    font-size: 22px;
    margin: 0 0 12px;
}

.pj-modal-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.pj-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pj-modal-actions button {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.pj-modal-cancel {
    background: white;
    color: #17251c;
    border: 1px solid #d1d5db;
}

.pj-modal-confirm {
    background: #dc2626;
    color: white;
    border: none;
}

.pj-modal-cancel:hover {
    background: #f8faf9;
}

.pj-modal-confirm:hover {
    background: #b91c1c;
}

@keyframes pj-modal-appear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================= */
/* STATISTIQUES DU JOUR */
/* ============================= */

.pj-stats {
    width: 100%;
    max-width: 650px;
    margin: 45px auto 30px;
    padding: 28px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.pj-stats-header {
    margin-bottom: 28px;
    text-align: center;
}

.pj-stats-header h2 {
    margin: 0 0 8px;
    color: #17251c;
    font-size: 22px;
}

.pj-stats-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.pj-stats-header strong {
    color: #16a34a;
    font-size: 20px;
}

.pj-stats-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pj-stat-row {
    display: grid;
    grid-template-columns: 90px 1fr 85px;
    align-items: center;
    gap: 12px;
}

.pj-stat-label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.pj-stat-track {
    height: 22px;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 6px;
}

.pj-stat-bar {
    height: 100%;
    width: 0;
    background: #22c55e;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.pj-stat-value {
    color: #475569;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .pj-stats {
        padding: 20px 14px;
    }

    .pj-stat-row {
        grid-template-columns: 70px 1fr 75px;
        gap: 8px;
    }

    .pj-stat-label {
        font-size: 12px;
    }

    .pj-stat-value {
        font-size: 11px;
    }
}

/* Bandeau de résultat : victoire / défaite */

.pj-result-banner {
    padding: 16px 20px;
    margin: 0 0 20px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    animation: bannerAppear 0.35s ease-out;
}

.pj-result-banner.victory-banner {
    background: #e8f7ed;
    color: #207a3d;
    border: 1px solid #b8e4c5;
}

.pj-result-banner.defeat-banner {
    background: #fff0f0;
    color: #b83232;
    border: 1px solid #f2c2c2;
}

@keyframes bannerAppear {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pj-header {
    height: 70px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8eee9;
    background: white;
}

#language-switch {
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid #e7ece8;
    border-radius: 7px;
    background: white;
    color: #174b32;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

/* Même typographie que le titre Connections */
.pj-intro h1 {
    font-family: inherit;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 900;
    color: #174b32;
    letter-spacing: -2px;
    margin: 0;
}

/* Ajustement des marges du header */
/* =====================================
   HEADER KICKDLE — ALIGNEMENT IDENTIQUE
   ===================================== */

.site-header {
    width: calc(100% - 217px) !important;
    max-width: 1510px !important;
    min-height: 90px;
    margin: 0 auto !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
    background: white;
    border-bottom: 1px solid #e8eee9;
}

.site-header .brand {
    margin: 0 !important;
    flex-shrink: 0;
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    margin: 0 auto;
}

.site-header nav a {
    text-decoration: none;
    color: #78827b;
    font-size: 16px;
    font-weight: 700;
}

.site-header nav a:hover {
    color: #174b32;
}

.site-header #language-switch {
    margin: 0 !important;
    flex-shrink: 0;
}

/* Adaptation mobile */
@media (max-width: 900px) {
    .site-header {
        width: calc(100% - 60px) !important;
    }
}

@media (max-width: 500px) {
    .site-header {
        width: calc(100% - 24px) !important;
        min-height: 70px;
    }

    .site-header nav {
        gap: 12px;
    }

    .site-header nav a {
        font-size: 13px;
    }
}

/* ==========================================
   STATISTIQUES - STYLE IDENTIQUE À CONNECTIONS
========================================== */

.pj-stats {
    width: 100%;
    max-width: 975px;
    margin: 55px auto 30px;
    padding: 45px 38px;
    box-sizing: border-box;

    background: #f7faf7;
    border: 1px solid #e3ebe3;
    border-radius: 22px;
    box-shadow: none;

    text-align: center;
}

.pj-stats-header {
    margin-bottom: 42px;
    text-align: center;
}

.pj-stats-header h2 {
    margin: 0 0 22px;
    color: #173f2b;
    font-size: 36px;
    font-weight: 800;
}

.pj-stats-header p {
    margin: 0;
    color: #718078;
    font-size: 22px;
}

.pj-stats-chart {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pj-stat-row {
    display: grid;
    grid-template-columns: 220px 1fr 85px;
    align-items: center;
    gap: 22px;
    text-align: left;
}

.pj-stat-label {
    color: #294536;
    font-size: 19px;
    font-weight: 600;
}

.pj-stat-track {
    height: 28px;
    overflow: hidden;
    background: #e5ece6;
    border-radius: 20px;
}

.pj-stat-bar {
    height: 100%;
    width: 0;
    background: #25834c;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.pj-stat-value {
    color: #173f2b;
    font-size: 20px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* Version mobile */
@media (max-width: 600px) {
    .pj-stats {
        padding: 28px 18px;
    }

    .pj-stats-header h2 {
        font-size: 26px;
    }

    .pj-stats-header p {
        font-size: 16px;
    }

    .pj-stat-row {
        grid-template-columns: 105px 1fr 65px;
        gap: 9px;
    }

    .pj-stat-label {
        font-size: 12px;
    }

    .pj-stat-track {
        height: 18px;
    }

    .pj-stat-value {
        font-size: 12px;
    }

    .pj-stats-chart {
        gap: 20px;
    }
}

/* Réduire la largeur et la taille du panel des statistiques */
#stats-section.pj-stats {
    width: 100% !important;
    max-width: 700px !important;
    margin: 45px auto 30px !important;
    padding: 30px 28px !important;
    box-sizing: border-box !important;
}

#stats-section .pj-stats-header {
    margin-bottom: 30px;
}

#stats-section .pj-stats-header h2 {
    font-size: 30px;
}

#stats-section .pj-stats-header p {
    font-size: 18px;
}

/* Réduire l'espacement des lignes */
#stats-section .pj-stats-chart {
    gap: 16px;
}

/* Ajuster les colonnes et les éléments du graphique */
#stats-section .pj-stat-row {
    grid-template-columns: 160px minmax(0, 1fr) 75px;
    gap: 14px;
}

#stats-section .pj-stat-label {
    font-size: 16px;
}

#stats-section .pj-stat-track {
    height: 24px;
}

#stats-section .pj-stat-value {
    font-size: 16px;
}

@media (max-width: 600px) {
    #stats-section.pj-stats {
        max-width: calc(100% - 24px) !important;
        padding: 24px 16px !important;
    }

    #stats-section .pj-stats-header h2 {
        font-size: 25px;
    }

    #stats-section .pj-stats-header p {
        font-size: 15px;
    }

    #stats-section .pj-stat-row {
        grid-template-columns: 95px minmax(0, 1fr) 65px;
        gap: 8px;
    }

    #stats-section .pj-stat-label,
    #stats-section .pj-stat-value {
        font-size: 12px;
    }
}
/* ==========================================
   FOOTER PLAYER JOURNEY
   Même disposition que CONNECTIONS
========================================== */

.pj-footer {
    width: calc(100% - 220px) !important;
    max-width: 1400px !important;

    margin: 40px auto 0 !important;
    padding: 28px 0 !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    box-sizing: border-box !important;
    border-top: 1px solid #e8eee9 !important;

    color: #999 !important;
    font-size: 13px !important;
}
.pj-footer span {
    margin: 0;
}

.pj-footer b {
    font-weight: 700;
}

@media (max-width: 700px) {
    .pj-footer {
        width: calc(100% - 40px) !important;
        padding: 25px 0 !important;
        gap: 15px;
        flex-wrap: wrap;
        font-size: 13px !important;
    }
}
/* ==========================================
   PLAYER JOURNEY — TYPOGRAPHIE STATISTIQUES
   Harmonisation avec CONNECTIONS
========================================== */

#stats-section .pj-stats-header h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
}

#stats-section .pj-stats-header p {
    font-size: 16px !important;
    font-weight: 400 !important;
}

#stats-section .pj-stat-label {
    font-size: 15px !important;
    font-weight: 600 !important;
}

#stats-section .pj-stat-value {
    font-size: 15px !important;
    font-weight: 700 !important;
}

@media (max-width: 600px) {
    #stats-section .pj-stats-header h2 {
        font-size: 23px !important;
    }

    #stats-section .pj-stats-header p {
        font-size: 14px !important;
    }

    #stats-section .pj-stat-label,
    #stats-section .pj-stat-value {
        font-size: 12px !important;
    }
}
/* Remonter le contenu de Player Journey */
main.pj-container {
    margin-top: 25px !important;
    padding-top: 0 !important;
}
/* Rapprocher fortement Player Journey de JEU QUOTIDIEN */
.pj-intro .pj-category {
    margin: 0 0 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.pj-intro h1 {
    margin: -1px 0 10px !important;
    line-height: 1.1 !important;
}
/* =========================================
   FOOTER — KICKDLE
========================================= */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 66px;
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    color: #9aa39d;
    font-size: 12px;
}

.site-footer .copyright {
    flex: 0 0 auto;
    margin-right: auto;
    white-space: nowrap;
}

.site-footer .copyright b {
    color: #78827b;
    font-weight: 750;
}

.site-footer nav.footer-links {
    position: static;
    left: auto;
    transform: none;
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    width: auto;
    gap: 30px;
    margin: 0 0 0 auto;
    padding: 0;
}

.site-footer .footer-links a {
    display: inline-block;
    flex: 0 0 auto;
    color: #9aa39d;
    font-size: 13px;
    font-weight: 450;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: var(--dark);
}

/* MOBILE */

@media (max-width: 640px) {
    .site-footer {
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-footer nav.footer-links {
        position: static;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 13px 20px;
        margin-left: 0;
    }
}

@media (max-width: 420px) {
    .site-footer nav.footer-links {
        justify-content: flex-start;
        column-gap: 16px;
    }
}