:root {
    --primary: #4F46E5;
    --primary-dark: #4338ca;
    --accent: #EC4899;
    --success: #10b981;
    --error: #ef4444;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brand-logo { max-height: 40px; border-radius: 10px; }

.step-indicator { display: flex; gap: 5px; }
.step-dot {
    width: 25px; height: 25px;
    border-radius: 50%;
    background: var(--glass);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: bold;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.step-dot.active { background: var(--primary); color: white; transform: scale(1.1); box-shadow: 0 0 10px var(--primary); }
.step-dot.completed { background: var(--success); color: white; }

.card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

/* Step 6 sections */
.step6-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.step6-section:last-of-type {
    border-bottom: none;
}

.step6-section h3 {
    color: #a5b4fc;
    font-size: 1em;
    margin-bottom: 5px;
}
.select-group {
    margin-bottom: 12px;
}
.select-group label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #cbd5e1;
}

.select-group select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: white;
    font-size: 0.95em;
}

.select-group select option {
    background: #1e293b;
    color: white;
}

.select-group select option:disabled {
    color: #64748b;
}
.invite-card { border: 2px solid #F59E0B; background: rgba(20, 20, 0, 0.6); }
.qr-invite-wrapper { border: 4px dashed #F59E0B; padding: 10px; }

h1, h2, h3 { margin-bottom: 15px; font-weight: 800; }
.subtitle { opacity: 0.7; margin-bottom: 20px; }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: #cbd5e1; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 10px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }

button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.btn-secondary { background: linear-gradient(135deg, var(--success), #059669); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: #cbd5e1; }

.step { display: none; animation: fadeIn 0.4s ease; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.emoji-display { text-align: center; margin: 20px 0; }
.info-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 3px solid var(--accent);
}

.qr-wrapper, .qr-wrapper-small {
    background: white;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin: 20px auto;
    max-width: 230px;
}

.camera-container {
    position: relative;
    width: 100%;
    height: 280px;
    background: black;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
    display: none;
}
video { width: 100%; height: 100%; object-fit: cover; }
.scan-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 180px; height: 180px;
    border: 2px solid var(--accent); border-radius: 20px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
}

.game-header { display: flex; justify-content: space-between; margin-bottom: 15px; gap: 10px; }
.score-box { text-align: center; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 10px; flex: 1; }
.score-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); display: block; }
.score-label { font-size: 0.75rem; opacity: 0.7; }

.participant-card {
    background: rgba(255,255,255,0.05);
    margin: 10px 0; padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    display: flex; align-items: center; justify-content: space-between;
}
.participant-card.scanned { border-color: var(--success); background: rgba(16, 185, 129, 0.1); }
.participant-card.target { border-color: #fbbf24; }
.icon-badge { font-size: 1.3rem; }

.progress-container { margin: 15px 0; }
.progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.5s ease; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.stat-card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--primary); }

.checkbox-item-wrapper { margin-bottom: 10px; }
.checkbox-item {
    display: flex; align-items: center; padding: 10px;
    background: rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer;
}
.checkbox-item:hover { background: rgba(255,255,255,0.1); }
.checkbox-item input { width: auto; margin: 0 10px 0 0; }
.other-input { background: rgba(0,0,0,0.5); margin-top: 5px; }

.range-container { display: flex; align-items: center; gap: 15px; }
.range-container input[type="range"] { flex: 1; margin: 0; }
.range-value { font-size: 1.2rem; font-weight: bold; color: var(--primary); min-width: 50px; }

.co2-savings {
    background: linear-gradient(135deg, #065f46, #064e3b);
    padding: 25px; border-radius: 15px; text-align: center;
    border: 1px solid #34d399;
}
.co2-number { font-size: 3.5rem; font-weight: 800; margin: 10px 0; color: #34d399; }

.navigation-buttons { display: flex; gap: 10px; margin-top: 15px; }
.navigation-buttons button { flex: 1; }

/* ============ STYLES CO-CONSTRUCTION ============ */

.roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.role-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.role-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.role-card.selected { border-color: var(--primary); background: rgba(79, 70, 229, 0.2); }
.role-icon { font-size: 2rem; margin-bottom: 8px; }
.role-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 5px; }
.role-desc { font-size: 0.75rem; opacity: 0.7; line-height: 1.3; }

.themes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.theme-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.theme-card:hover { background: rgba(255,255,255,0.1); }
.theme-card.selected { border-color: var(--theme-color, var(--primary)); background: rgba(255,255,255,0.15); }
.theme-icon { font-size: 1.8rem; margin-bottom: 5px; }
.theme-name { font-size: 0.85rem; font-weight: 600; }

.discussion-theme-block {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--theme-color, var(--primary));
}

.question-category {
    margin-bottom: 10px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.category-header:hover { background: rgba(255,255,255,0.1); }
.category-hint { font-size: 0.75rem; opacity: 0.6; font-weight: 400; }

.category-questions {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.question-card {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.question-card:hover { background: rgba(255,255,255,0.1); border-left-color: var(--primary); }
.question-card.discussed { opacity: 0.5; border-left-color: var(--success); }
.question-text { font-size: 0.9rem; line-height: 1.4; }

.engagement-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.engagement-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.engagement-option:hover { background: rgba(255,255,255,0.1); }
.engagement-option input { margin-right: 12px; width: auto; }
.engagement-option span { font-size: 0.9rem; }

/* ============ ADMIN & DIVERS ============ */

.admin-floating-btn, .reset-floating-btn {
    position: fixed; bottom: 20px; width: 50px; height: 50px;
    border-radius: 50%; border: 1px solid var(--glass-border);
    font-size: 1.5rem; cursor: pointer; z-index: 999;
    display: flex; justify-content: center; align-items: center; padding: 0;
}
.admin-floating-btn { right: 20px; background: var(--bg-dark); color: white; }
.reset-floating-btn { left: 20px; background: #dc2626; color: white; }

.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal.active { display: flex; }
.modal-content { background: #1e293b; padding: 25px; border-radius: 20px; width: 100%; max-width: 450px; max-height: 90vh; overflow-y: auto; }

.toast-msg {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: white; color: #1e293b;
    padding: 12px 20px;
    border-radius: 50px;
    z-index: 10000;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex; align-items: center; gap: 10px;
    animation: slideDown 0.3s ease-out;
}
.toast-msg.success { border-left: 5px solid var(--success); }
.toast-msg.error { border-left: 5px solid var(--error); }

@keyframes slideDown { from { opacity:0; transform: translate(-50%, -20px); } to { opacity:1; transform: translate(-50%, 0); } }

.feedback-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.success-msg { color: var(--success); font-weight: 600; text-align: center; margin: 10px 0; }
.error-msg { color: var(--error); font-size: 0.9rem; margin-top: 5px; }

#companyQRSection {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 400px) {
    .roles-grid, .themes-grid { grid-template-columns: 1fr; }
    .role-card, .theme-card { padding: 12px; }
}
/* ================= CO-CONSTRUCTION V2 ================= */

/* Couleur collective */
.collective-card {
    border: 1px solid #8b5cf6;
}

.collective-box {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8b5cf6;
    color: #e2e8f0;
}

.collective-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Choix distance */
.distance-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.distance-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.distance-card:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.distance-icon { font-size: 2.5em; margin-bottom: 10px; }
.distance-title { font-size: 1.2em; font-weight: 700; margin-bottom: 5px; }
.distance-desc { font-size: 0.9em; opacity: 0.7; margin-bottom: 10px; }
.distance-themes { font-size: 0.8em; opacity: 0.6; }

/* Discussion header */
.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.current-theme { font-size: 1.3em; font-weight: 700; }
.phase-indicator { text-align: right; }
.phase-indicator span { display: block; }
#phaseLabel { font-size: 0.85em; opacity: 0.6; }
#phaseName { font-size: 1.1em; font-weight: 600; color: #8b5cf6; }

/* Phase cards */
.phase-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--phase-color, #8b5cf6);
}

.phase-badge {
    display: inline-block;
    background: var(--phase-color, #8b5cf6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
}

.phase-question {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.phase-answer {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.reveal-btn {
    width: 100%;
    margin-top: 10px;
}

/* Discussion prompts */
.discussion-prompts {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.discussion-prompts h4 {
    margin-bottom: 10px;
    color: #a5b4fc;
}

.discussion-prompts ul {
    margin-left: 20px;
    line-height: 1.8;
}

.discussion-prompts li {
    opacity: 0.9;
}

/* Freins & Valeurs lists */
.freins-list, .valeurs-list, .engagements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.frein-item, .valeur-item, .engagement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 10px;
}

.frein-text, .valeur-text, .engagement-text {
    flex: 1;
    font-size: 0.95em;
}

.vote-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #8b5cf6;
    color: white;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.vote-btn:active {
    transform: scale(0.95);
}

.vote-count {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
}

/* Astuces */
.astuces-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.astuces-box h4 {
    color: #f59e0b;
    margin-bottom: 10px;
}

.astuces-box ul {
    margin-left: 10px;
    list-style: none;
}

.astuces-box li {
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Phase navigation */
.phase-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.phase-navigation button {
    flex: 1;
}

/* Timer box */
.timer-box {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border: 2px solid #8b5cf6;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

#timerPhaseLabel {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

#timerCountdown {
    font-size: 3em;
    font-weight: 800;
    color: #a5b4fc;
    font-family: monospace;
}

#timerHint {
    margin-top: 10px;
}

/* Synthèse */
.synthese-theme {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px;
}

.synthese-theme h3 {
    margin-bottom: 15px;
}

.synthese-theme ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.synthese-theme li {
    margin-bottom: 5px;
}

/* Resource links (membres) */
.resource-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.resource-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.resource-link-card:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.resource-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.resource-name {
    font-size: 0.85em;
    text-align: center;
    opacity: 0.9;
}
/* ================= CO-CONSTRUCTION V2 ================= */

/* Couleur collective */
.collective-card {
    border: 1px solid #8b5cf6;
}

.collective-box {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8b5cf6;
    color: #e2e8f0;
}

.collective-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Choix distance */
.distance-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.distance-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.distance-card:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.distance-icon { font-size: 2.5em; margin-bottom: 10px; }
.distance-title { font-size: 1.2em; font-weight: 700; margin-bottom: 5px; }
.distance-desc { font-size: 0.9em; opacity: 0.7; margin-bottom: 10px; }
.distance-themes { font-size: 0.8em; opacity: 0.6; line-height: 1.6; }

/* Timer Master Interface */
.timer-general-box {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border: 2px solid #8b5cf6;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.timer-general-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.timer-general-display {
    font-size: 2em;
    font-weight: 700;
    font-family: monospace;
    color: #a5b4fc;
    margin-bottom: 15px;
}

.timer-general-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-general-fill {
    height: 100%;
    background: #8b5cf6;
    transition: width 1s linear;
}

.timer-status {
    font-size: 0.9em;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.status-waiting { background: rgba(255,255,255,0.1); color: #94a3b8; }
.status-running { background: rgba(139, 92, 246, 0.2); color: #a5b4fc; }
.status-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-late { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.status-done { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* Timer Subject Box */
.timer-subject-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.timer-subject-inactive {
    opacity: 0.5;
}

.timer-subject-active {
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.timer-subject-done {
    border-color: #10b981;
    opacity: 0.7;
}

.timer-subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timer-subject-label {
    font-weight: 700;
    font-size: 1.1em;
}

.timer-subject-time {
    font-family: monospace;
    font-size: 1.1em;
    color: #a5b4fc;
}

.timer-subject-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.timer-subject-fill {
    height: 100%;
    background: #8b5cf6;
    transition: width 1s linear;
}

.timer-phases {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.timer-phase {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timer-phase.phase-active {
    background: rgba(139, 92, 246, 0.2);
}

.timer-phase.phase-done {
    opacity: 0.6;
}

.phase-dot {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.phase-label {
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 3px;
}

.phase-time {
    font-size: 0.7em;
    opacity: 0.6;
}

/* Discussion header */
.discussion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.current-theme { font-size: 1.3em; font-weight: 700; }
.phase-indicator { text-align: right; }
.phase-indicator span { display: block; }
#phaseLabel { font-size: 0.85em; opacity: 0.6; }
#phaseName { font-size: 1.1em; font-weight: 600; color: #8b5cf6; }

/* Phase cards */
.phase-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--phase-color, #8b5cf6);
}

.phase-badge {
    display: inline-block;
    background: var(--phase-color, #8b5cf6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
}

.phase-question {
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.phase-answer {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.reveal-btn {
    width: 100%;
    margin-top: 10px;
}

/* Discussion prompts */
.discussion-prompts {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.discussion-prompts h4 {
    margin-bottom: 10px;
    color: #a5b4fc;
}

.discussion-prompts ul {
    margin-left: 20px;
    line-height: 1.8;
}

.discussion-prompts li {
    opacity: 0.9;
}

/* Freins & Valeurs lists */
.freins-list, .valeurs-list, .engagements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.frein-item, .valeur-item, .engagement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 10px;
}

.frein-text, .valeur-text, .engagement-text {
    flex: 1;
    font-size: 0.95em;
    padding-right: 10px;
}

.vote-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vote-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8b5cf6;
    color: white;
    border: none;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.vote-btn:active {
    transform: scale(0.95);
    background: #7c3aed;
}

.vote-count {
    min-width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2em;
}

/* Astuces */
.astuces-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.astuces-box h4 {
    color: #f59e0b;
    margin-bottom: 10px;
}

.astuces-box ul {
    margin-left: 10px;
    list-style: none;
}

.astuces-box li {
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* Phase navigation */
.phase-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.phase-navigation button {
    flex: 1;
}

/* Synthèse */
.synthese-theme {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 15px;
}

.synthese-theme h3 {
    margin-bottom: 15px;
}

.synthese-theme ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.synthese-theme li {
    margin-bottom: 5px;
}

/* Resource links (membres) */
.resource-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.resource-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.resource-link-card:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.resource-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.resource-name {
    font-size: 0.85em;
    text-align: center;
    opacity: 0.9;
}
