/* Charte graphique Psycelium - Or/Bronze */
:root {
    --primary-color: #c49a3a;
    --secondary-color: #d4a853;
    --accent-color: #b8884d;
    --bronze-dark: #9d7533;
    --bronze-light: #e6c88a;
    --dark-bg: #2a2520;
    --light-bg: #faf8f5;
    --text-dark: #2c2520;
    --text-light: #6c665d;
    --border-color: #d9d1c7;
    --success-color: #8a9d6f;
    --warning-color: #d4864d;
    
    /* Couleurs des quatre dimensions */
    --dharma-color: #8a9d6f;
    --artha-color: #c49a3a;
    --kama-color: #d4864d;
    --moksha-color: #9d84a8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #faf8f5 0%, #f5f2ed 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1em;
}

/* Sections */
.section {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Introduction */
.intro-content h2 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-bottom: 20px;
    text-align: center;
}

.intro-content > p {
    text-align: center;
    font-size: 1em;
    margin-bottom: 30px;
}

/* MODIFICATION : Grid 2x2 pour les dimensions */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dimension-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(196, 154, 58, 0.2);
}

.dimension-card h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.dimension-card p {
    color: var(--text-light);
    font-size: 0.9em;
}

.intro-benefits {
    margin: 30px 0;
    text-align: center;
}

.intro-benefits h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-benefits ul {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.intro-benefits li {
    padding: 10px 0;
    font-size: 1.05em;
    color: var(--text-dark);
}

.privacy-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9em;
    margin-top: 20px;
}

/* Boutons */
.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(196, 154, 58, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Formulaire */
.form-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

form button {
    width: 100%;
    margin-top: 10px;
}

/* NOUVEAU : Barre de progression */
.progress-container {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 10px;
}

.progress-missing {
    text-align: center;
    color: var(--warning-color);
    font-size: 0.9em;
    font-weight: 600;
    min-height: 20px;
}

/* NOUVEAU : Questions sur une seule page */
.questions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.question-item {
    background: var(--light-bg);
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.question-item.answered {
    border-left-color: var(--success-color);
    background: rgba(138, 157, 111, 0.05);
}

.question-item.unanswered-highlight {
    animation: highlightPulse 2s ease-in-out;
    border-left-color: var(--warning-color);
}

@keyframes highlightPulse {
    0%, 100% { background: var(--light-bg); }
    50% { background: rgba(212, 134, 77, 0.15); }
}

.question-number-inline {
    display: inline;
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
    font-size: 1em;
}

.question-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.5;
}

/* NOUVEAU : Options horizontales */
.options-horizontal {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.option-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-dark);
}

.option-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 154, 58, 0.2);
}

.option-btn.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
}

/* Bouton de soumission */
.submit-container {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
}

.submit-container button {
    max-width: 400px;
    padding: 18px 50px;
    font-size: 1.2em;
}

/* Résultats */
.results-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.chart-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.score-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.score-card h3 {
    font-size: 1em;
    margin-bottom: 8px;
    opacity: 0.95;
    font-weight: 600;
}

.score-value {
    font-size: 2.2em;
    font-weight: bold;
    margin: 8px 0;
}

.score-percentage {
    font-size: 0.9em;
    opacity: 0.9;
}

.interpretation {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid var(--primary-color);
    text-align: center;
}

.interpretation h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.interpretation p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 15px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--light-bg);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .section {
        padding: 25px;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .scores-grid {
        grid-template-columns: 1fr;
    }
    
    .options-horizontal {
        flex-direction: column;
    }
    
    .option-btn {
        min-width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons a {
        width: 100%;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-primary:active {
    animation: pulse 0.3s ease;
}
