:root {
    --pwc-bg: #f8fafc;
    --pwc-text: #334155;
    --pwc-accent: #6366f1;
    --pwc-private: #fb7185; /* Pastel Rose */
    --pwc-public: #34d399;  /* Pastel Vert */
}

.pwc-main-box {
    background: white;
    border-radius: 24px;
    max-width: 650px;
    margin: 40px auto;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* --- ACCUEIL --- */
.pwc-intro {
    padding: 80px 40px;
    text-align: center;
}

.pwc-intro h3 { font-weight: 800; font-size: 1.8rem; margin-bottom: 15px; }
.pwc-intro p { color: #64748b; margin-bottom: 30px; font-size: 1.1rem; }

/* --- CARTE DE TRI --- */
.pwc-game-view { padding: 40px; }

.pwc-sort-card {
    background: #f8fafc;
    padding: 50px 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s;
}

.pwc-card-title { font-size: 1.4rem; font-weight: 700; margin-top: 15px; color: #1e293b; }

/* --- BOUTONS PLUS DISCRETS ET LARGES --- */
.pwc-actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; padding: 0 20px;
}

.pwc-btn-sort {
    border: 2px solid #e2e8f0;
    background: white;
    padding: 20px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.pwc-btn-sort.is-private:hover {
    border-color: var(--pwc-private);
    color: var(--pwc-private);
    background: #fff1f2;
}

.pwc-btn-sort.is-public:hover {
    border-color: var(--pwc-public);
    color: var(--pwc-public);
    background: #f0fdf4;
}

.pwc-feedback {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* --- pwc-header : Version Dashboard Épuré --- */
.pwc-header {
    background: #ffffff;
    padding: 1.5rem 2.5rem; /* Marges généreuses pour la respiration */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 24px 24px 0 0; /* Aligné sur l'arrondi du conteneur */
}

/* --- SECTION SCORE --- */
.pwc-score {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Label au-dessus du chiffre */
.pwc-score::before {
    content: "SCORE ACTUEL";
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8; /* Slate 400 */
    letter-spacing: 0.05em;
}

#pwc-score-val {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e293b; /* Slate 800 */
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1;
}

/* --- SECTION PROGRESSION --- */
.pwc-progress-text {
    background: #eef2ff; /* Fond indigo très léger */
    color: #6366f1;    /* Texte indigo */
    padding: 8px 16px;
    border-radius: 999px; /* Badge pill */
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid #e0e7ff;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

/* Petit indicateur visuel devant le texte de progression */
.pwc-progress-text::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
}

#pwc-current { font-weight: 900; }
#pwc-total { opacity: 0.6; }

.pwc-main-box {
    background: white;
    border-radius: 24px;
    max-width: 650px;
    margin: 40px auto;
    border: 1px solid #e2e8f0;
    /* Ombre portée plus diffuse et légère */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* --- Bouton Lancer la Simulation (Version Premium) --- */
.pwc-btn-start {
    background: var(--pwc-accent); /* Indigo #6366f1 */
    color: white;
    border: none;
    padding: 16px 40px; /* Plus large pour un aspect "Bouton d'action" */
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2); /* Ombre colorée discrète */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-top: 20px;
}

/* Effet de survol : le bouton se lève légèrement */
.pwc-btn-start:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

/* Effet de clic : le bouton s'enfonce */
.pwc-btn-start:active {
    transform: translateY(1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

/* --- Marges de l'Intro --- */
.pwc-intro {
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.pwc-intro h3 {
    font-weight: 900;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.pwc-intro p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}