.personality-test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.personality-test-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

.test-step h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.progress-container {
    position: sticky;
    top: 80px; /* Ajustez cette valeur en fonction de la hauteur de votre header */
    background: white;
    padding: 15px 0;
    z-index: 100;
    margin: 30px 0 40px 0;
    transition: box-shadow 0.3s ease;
}

.progress-container.is-sticky {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    padding: 0 15px;
    position: relative;
}

.progress-instruction {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.progress-percentage {
    font-weight: 500;
}

.progress-step {
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: visible;
    position: relative;
}

.back-arrow {
    position: absolute;
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
  
}

.back-arrow:hover {
    opacity: 1;
    color: #9d4edd;
}

.back-arrow::before {
    content: "‹";
    font-size: 32px;
    line-height: 0;
    font-weight: bold;
    margin-top: -2px;
    margin-right: 2px;
}

.progress {
    height: 100%;
    background: #9d4edd;
    transition: width 0.3s ease;
}

.question-group {
    margin-bottom: 00px;
}

.question {
    margin-bottom: 0px;
    padding: 20px;
    background: #fff;
}

.question p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-align: center;
}

.answers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 20px 0;
}

.answers::before {
    content: 'Disagree';
    position: absolute;
    left: 0;
    color: #7B1FA2;
    font-weight: 500;
}

.answers::after {
    content: 'Agree';
    position: absolute;
    right: 0;
    color: #1e824c;
    font-weight: 500;
}

.answers label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.answers label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.answers label span {
    display: block;
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    border: 3px solid var(--circle-color);
    background: #fff;
    transition: all 0.2s ease;
}

/* Circle sizes and colors */
.answers label:nth-child(1) { --circle-size: 40px; --circle-color: #7B1FA2; }
.answers label:nth-child(2) { --circle-size: 35px; --circle-color: #9C27B0; }
.answers label:nth-child(3) { --circle-size: 30px; --circle-color: #a1a1a1; }
.answers label:nth-child(4) { --circle-size: 35px; --circle-color: #27ae60; }
.answers label:nth-child(5) { --circle-size: 40px; --circle-color: #1e824c; }

.answers label:hover span {
    transform: scale(1.1);
}

.answers label input[type="radio"]:checked + span {
    background: var(--circle-color);
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

button.next-step {
    padding: 15px 40px;
    font-size: 18px;
    color: #fff;
    background: #1e824c;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

button.next-step:hover {
    background: #166b3c;
}

button.prev-step {
    background: #666;
}

button.prev-step:hover {
    background: #555;
}

/* Results page styles */
.congratulations {
    text-align: center;
    margin-bottom: 40px;
}

.congratulations h1 {
    color: #1e824c;
    font-size: 32px;
    margin-bottom: 15px;
}

.congratulations p {
    color: #666;
    font-size: 18px;
}

.results-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #1e824c;
    outline: none;
}

.test-step {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.test-step.fade-out {
    opacity: 0;
}

.test-step.fade-in {
    opacity: 1;
}

.final-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.final-results h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

.primary-archetype {
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 2rem;
    font-size: 18px;
    padding: 14px;
}

.archetype-details {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.archetype-image {
    width: 200px;
    height: 200px;
    background: #ddd;
    border-radius: 50%;
}

.secondary-archetypes {
    margin-bottom: 3rem;
}

.archetype-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.secondary-archetype {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.archetype-chart {
    margin-bottom: 3rem;
}

.share-results {
    text-align: center;
    margin-bottom: 2rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.retake-test {
    text-align: center;
}

.retake-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.retake-btn:hover {
    background: #45a049;
}

/* Styles pour l'historique des tests */
.personality-test-history {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.personality-test-history h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #7b2cbf;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2em;
}

.test-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.test-card {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #2d2d44;
    max-width: 250px;
    margin: 0 auto;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #6b46c1;
}

.test-card-header {
    color: #e2e8f0;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 8px;
}
.test-card-header .archetype-title{margin:0px!important;
}
.test-card-content {
    color: #a0aec0;
}

.test-card-content h3 {
    font-size: 1.1em;
    color: #e2e8f0;
    margin: 0 0 10px 0;
    text-align: center;
	
}

.mini-chart {
    height: 180px;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.test-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.test-card-actions button {
    padding: 6px 12px;
    font-size: 0.85em;
}

.test-card-actions button.delete {
    background: #2d3748;
}

.test-card-actions button.delete:hover {
    background: #4a5568;
}

.test-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.test-date {
    color: #7b2cbf;
    font-size: 0.85em;
    font-weight: 500;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-locked {
    background: rgba(255, 87, 51, 0.15);
    color: #ff5733;
}

.status-unlockable {
    background: rgba(157, 78, 221, 0.15);
    color: #9d4edd;
    cursor: pointer;
}

.status-unlockable:hover {
    background: rgba(157, 78, 221, 0.25);
}

.status-unlocked {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.premium-badge {
    background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    display: inline-block;
}

.view-test {
    flex: 1;
    padding: 8px 16px;
    background: #9d4edd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: none;
    line-height: normal;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.view-test:hover {
    background: #7b2cbf;
}

.delete-test {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    color: #7b2cbf;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-test:hover {
    opacity: 1;
    color: #ff4d4d;
}

@media (max-width: 768px) {
    .test-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .mini-chart {
        height: 160px;
    }
    
    .test-card-content h3 {
        font-size: 1em;
    }
    
    .test-date {
        font-size: 0.8em;
    }
    
    .view-test {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    
    .test-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .status-indicator {
        font-size: 0.8em;
    }

    .answers::before,
    .answers::after {
        top: -0px;
    }

    .answers {
        padding-top: 20px;
    }
}

.personality-test-wrapper {
    display: none !important;
}

.personality-test-wrapper.visible {
    display: block !important;
}

.test-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.test-info p {
    margin: 5px 0;
}

.test-info-messages {
    margin-bottom: 20px;
    text-align: start;
    color: #666;
}

.test-info-messages p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Cacher le bouton retour sur la première étape */
.test-step[data-step="1"] .back-arrow {
    display: none !important;
}

/* Section CTA styles */
.section-cta {
    text-align: center;
    margin: 15px 0 30px;
}

.section-cta-button {
    background-color: #7B1FA2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.section-cta-button:hover {
    background-color: #9C27B0;
    transform: translateY(-2px);
}

.button-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.next-step.processing {
    background-color: #155724;
    cursor: not-allowed;
    opacity: 0.8;
} 

.visiblestrenght {filter:blur(10px)}