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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 95%;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.screen {
    display: none;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.screen.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

h1 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #4a5568;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

h3 {
    color: #2d3748;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

p {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn {
    background: #667eea;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.answer-btn {
    background: white;
    color: #4a5568;
    padding: 15px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #667eea;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.answer-btn:hover {
    background: #f7fafc;
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.answer-btn:hover::before {
    transform: scaleY(1);
}

.answer-btn.selected {
    background: #f0f5ff;
    border-color: #667eea;
    color: #2d3748;
    font-weight: 500;
    transform: translateX(10px);
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.answer-btn.selected::before {
    transform: scaleY(1);
}

.answer-btn.selected::after {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem;
    font-weight: bold;
}

#progress-container {
    width: 100%;
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    margin: 20px 0;
    position: relative;
}

#progress-bar {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

#part-indicator {
    position: absolute;
    top: -45px;
    right: 0;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.profile-your-profile{
    display: none !important;
}

#question-counter {
    position: absolute;
    top: -45px;
    left: 0;
    background: #4a5568;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 0 1rem;
}

.nav-btn {
    min-width: 150px;
    background: #4a5568;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-btn:hover:not([disabled]) {
    opacity: 1;
    background: #2d3748;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #718096;
}

#prev-btn {
    margin-right: 1rem;
}

#next-btn {
    margin-left: 1rem;
}

.recommendations-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.recommendation-section {
    margin: 1rem 0;
    padding: 1.5rem;
    background: white;
    border-left: 4px solid #667eea;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recommendation-section h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.recommendation-section p {
    white-space: pre-line;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0;
}

#generation-result {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f5ff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#generation-result h3 {
    color: #2d3748;
    margin: 1rem 0;
    font-size: 1.3rem;
}

#generation-result p {
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

#question-container {
    margin: 2rem 0;
}

#answers-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 2rem 0;
}

/* Styles pour l'écran de transition */
.transition-content {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.completion-message {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out 0.3s both;
}

.checkmark {
    width: 30px;
    height: 60px;
    border-right: 6px solid white;
    border-bottom: 6px solid white;
    transform: rotate(45deg) translate(-5px, -5px);
    animation: checkmark 0.5s ease-out 0.8s both;
}

.next-part-preview {
    background: #f0f5ff;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    animation: slideIn 0.5s ease-out 1s both;
}

.next-part-preview h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.next-part-preview p {
    color: #4a5568;
    margin-bottom: 0;
}

/* Animation du bouton Continuer */
.pulse {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 rgba(102, 126, 234, 0.4);
}

/* Keyframes pour les animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes checkmark {
    from {
        height: 0;
        width: 0;
        opacity: 0;
    }
    to {
        height: 60px;
        width: 30px;
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
    }
}

/* Styles pour la page de résultats */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.generation-profiles {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.profile {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.your-profile {
    border-left: 5px solid #667eea;
    display: none;
}

.other-profile {
    border-left: 5px solid #764ba2;
}

.generation-years {
    color: #666;
    font-size: 0.9em;
    margin-top: -10px;
}

.profile-details h4 {
    color: #2d3748;
    margin: 15px 0 10px;
}

.profile-details ul {
    list-style: none;
    padding-left: 0;
}

.profile-details li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.profile-details li::before {
    content: '•';
    color: #667eea;
    font-size: 1.5em;
    position: absolute;
    left: 5px;
    top: -5px;
}

.communication-advice {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.communication-advice h3 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.advice-section {
    margin: 20px 0;
}

.advice-section h4 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.advice-section ul {
    list-style: none;
    padding-left: 0;
}

.advice-section li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.4;
}

.advice-section li::before {
    content: '→';
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .generation-profiles {
        flex-direction: column;
    }
    
    .profile {
        min-width: 100%;
    }
}

/* Styles pour l'écran de transition 2 */
#transition-screen2 {
    text-align: center;
    padding: 2rem;
}

#transition-screen2 .transition-content {
    max-width: 600px;
    margin: 0 auto;
}

#transition-screen2 h2 {
    color: #4CAF50;
    margin-bottom: 2rem;
}

/* Styles pour les résultats des mises en situation */
#situations-feedback {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

#situations-feedback h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

#situations-feedback.hidden {
    display: none;
}

#situations-result {
    text-align: left;
}

.explanation-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.explanation-item p {
    margin: 0.5rem 0;
}

.explanation-item strong {
    color: #2c3e50;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-button i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-4px);
}
