/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Gestion des pages */
.page {
    display: none;
    min-height: 100vh;
    padding: 2rem 0;
}

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

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

/* Page d'accueil */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.main-content {
    text-align: center;
}

.cms-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cms-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.icon-circle.wordpress { background: #21759b; }
.icon-circle.webflow { background: #4353ff; }
.icon-circle.framer { background: #0055ff; }
.icon-circle.squarespace { background: #000000; }
.icon-circle.wix { background: #0156ff; }
.icon-circle.ai { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 2s infinite;
}

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

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mode-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Questionnaire */
.quiz-header {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    text-align: left;
    color: white;
    font-weight: 500;
}

.btn-review {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-review:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Page de révision des réponses */
.review-container {
    max-width: 100%;
    margin: 0 auto;
}

.review-container h3 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.review-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-question {
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.review-answer {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.btn-modify {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modify:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.quiz-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.question-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.5;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    padding: 1.2rem 1.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.answer-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.answer-option input[type="radio"] {
    display: none;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Résultats */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.recommendation-card {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.cms-winner {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cms-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cms-score {
    font-size: 1rem;
    opacity: 0.8;
}

.user-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.user-summary h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.summary-item {
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #667eea;
    border: 1px solid #e5e5e5;
    font-weight: 500;
}

.limitations-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff5f5;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

.limitations-section h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.limitations-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.limitation-item {
    color: #dc2626;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.comparison-table {
    margin-bottom: 2rem;
}

.table-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.cms-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cms-table th,
.cms-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.cms-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
}

.cms-table .cms-name {
    font-weight: 600;
    color: #1a1a1a;
}

.cms-table .score {
    font-weight: 600;
}

.cms-table .recommended {
    background: #e8f5e8;
    color: #2d5016;
}

.action-buttons {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cms-icons {
        gap: 0.8rem;
    }
    
    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .cms-icon span {
        font-size: 0.8rem;
    }
    
    .quiz-content,
    .results-content {
        padding: 1.5rem;
    }
    
    .question-title {
        font-size: 1.2rem;
    }
    
    .question-category {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cms-icons {
        flex-direction: column;
        align-items: center;
    }
    
    .cms-table {
        font-size: 0.9rem;
    }
    
    .cms-table th,
    .cms-table td {
        padding: 0.5rem;
    }
    
    .summary-content {
        gap: 0.5rem;
    }
    
    .summary-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .user-summary,
    .limitations-section {
        padding: 1rem;
    }
    
    .user-summary h3,
    .limitations-section h3 {
        font-size: 1rem;
    }
}
