: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; }

/* --- ZONE DE JEU --- */
.pwc-game-view { padding: 40px 30px 30px; }

/* --- SWIPE STACK (style Tinder) --- */
.pwc-swipe-stack {
    position: relative;
    height: 380px;
    max-width: 360px;
    margin: 0 auto 2rem;
}

.pwc-swipe-card {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
    user-select: none;
    -webkit-user-select: none;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s;
    will-change: transform;
}
.pwc-swipe-card.back2 {
    transform: translateY(18px) scale(.92);
    opacity: .5;
    z-index: 1;
}
.pwc-swipe-card.back1 {
    transform: translateY(9px) scale(.96);
    opacity: .75;
    z-index: 2;
}
.pwc-swipe-card.front {
    z-index: 3;
    cursor: grab;
    touch-action: pan-y;
}
.pwc-swipe-card.front.dragging {
    cursor: grabbing;
    transition: none;
}

.pwc-swipe-card .pwc-card-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.pwc-swipe-card .pwc-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 .75rem;
}
.pwc-swipe-card .pwc-card-hint {
    color: #94a3b8;
    font-size: .8rem;
    margin: 0;
}

.pwc-swipe-overlay {
    position: absolute;
    top: 30px;
    padding: .55rem 1.1rem;
    border-radius: .6rem;
    font-weight: 900;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.pwc-swipe-overlay.left {
    left: 20px;
    background: rgba(239, 68, 68, .95);
    transform: rotate(-12deg);
    border: 3px solid #fff;
}
.pwc-swipe-overlay.right {
    right: 20px;
    background: rgba(34, 197, 94, .95);
    transform: rotate(12deg);
    border: 3px solid #fff;
}
.pwc-swipe-card.drag-left  .pwc-swipe-overlay.left,
.pwc-swipe-card.drag-right .pwc-swipe-overlay.right {
    opacity: 1;
}

/* --- BOUTONS ACTION (Swipe version) --- */
.pwc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 10px;
    max-width: 420px;
    margin: 0 auto;
}

.pwc-btn-sort {
    border: none;
    background: #f1f5f9;
    padding: 1.15rem 1rem;
    border-radius: 1rem;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.pwc-btn-sort.is-private {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(239, 68, 68, .25);
}

.pwc-btn-sort.is-public {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(34, 197, 94, .25);
}

.pwc-btn-sort:hover:not(:disabled) {
    transform: translateY(-2px);
}
.pwc-btn-sort.is-private:hover:not(:disabled) {
    box-shadow: 0 14px 28px rgba(239, 68, 68, .35);
}
.pwc-btn-sort.is-public:hover:not(:disabled) {
    box-shadow: 0 14px 28px rgba(34, 197, 94, .35);
}
.pwc-btn-sort:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* --- Titre de carte générique (anciens sélecteurs conservés) --- */
.pwc-card-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; }

.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-big-icon {
    font-size: 8rem;
    line-height: 1;
    text-align: center;
    margin: 0 auto 1.5rem;
    display: block;
}

.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;
}