/* Styles supplémentaires pour le diagnostic simplifié */

.symptom-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.symptom-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.symptom-item.selected {
    background: #d4edda;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.symptom-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.symptom-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.2);
}

.symptom-item span {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.symptom-item small {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    margin-top: 5px;
}

.question-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.question-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    line-height: 1.4;
}

.answer-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.answer-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.answer-btn.oui { 
    background: #28a745; 
    color: white; 
}

.answer-btn.oui:hover { 
    background: #218838; 
}

.answer-btn.non { 
    background: #dc3545; 
    color: white; 
}

.answer-btn.non:hover { 
    background: #c82333; 
}

.answer-btn.peut-etre { 
    background: #ffc107; 
    color: #212529; 
}

.answer-btn.peut-etre:hover { 
    background: #e0a800; 
}

.answer-btn.ne-sais-pas { 
    background: #6c757d; 
    color: white; 
}

.answer-btn.ne-sais-pas:hover { 
    background: #5a6268; 
}

.diagnosis-result {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.diagnosis-card {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.diagnosis-card h4 {
    margin-top: 0;
    color: #155724;
    font-size: 1.2em;
}

.recommendations {
    margin-top: 25px;
}

.recommendations h3 {
    color: #155724;
    margin-bottom: 15px;
}

.recommendation {
    padding: 15px;
    margin: 12px 0;
    border-radius: 6px;
    border-left: 4px solid;
}

.recommendation.natural { 
    background: #d4edda; 
    border-left-color: #28a745;
}

.recommendation.chemical { 
    background: #fff3cd; 
    border-left-color: #ffc107;
}

.recommendation.preventive { 
    background: #cce5ff; 
    border-left-color: #007bff;
}

.recommendation strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

#loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

#loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
}

#preview-image {
    max-width: 300px;
    max-height: 300px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Styles pour la logique de fin de diagnostic */

.final-diagnosis, .uncertain-diagnosis, .expert-consultation {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.diagnosis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.diagnosis-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.confidence-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.confidence-badge.high-confidence {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.confidence-badge.medium-confidence {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.primary-diagnosis-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #28a745;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.primary-diagnosis-card h3 {
    margin-top: 0;
    color: #155724;
    font-size: 1.4em;
}

.diagnosis-type {
    color: #6c757d;
    font-weight: 500;
    margin: 10px 0;
}

.diagnosis-description {
    line-height: 1.6;
    color: #495057;
}

.alternatives-list {
    margin: 20px 0;
}

.alternative-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

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

.alternative-header h4 {
    margin: 0;
    color: #333;
}

.confidence-score {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #495057;
}

.alternative-type {
    color: #6c757d;
    font-size: 14px;
    margin: 8px 0;
}

.alternative-description {
    color: #495057;
    line-height: 1.5;
    margin: 10px 0 0 0;
}

.recommendations-section {
    margin: 25px 0;
}

.recommendations-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.recommendation-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.recommendation-card h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.recommendation-card.natural {
    border-left: 4px solid #28a745;
}

.recommendation-card.natural h4 {
    color: #155724;
}

.recommendation-card.chemical {
    border-left: 4px solid #ffc107;
}

.recommendation-card.chemical h4 {
    color: #856404;
}

.recommendation-card.preventive {
    border-left: 4px solid #007bff;
}

.recommendation-card.preventive h4 {
    color: #004085;
}

.diagnosis-actions, .uncertainty-actions, .consultation-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-tertiary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: #28a745;
    color: white;
}

.btn-tertiary:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.uncertainty-message {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
}

.uncertainty-message p {
    margin: 0;
    color: #856404;
}

.consultation-message {
    background: #d1ecf1;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
    margin: 20px 0;
}

.consultation-message p {
    margin-top: 0;
    color: #0c5460;
}

.consultation-message ul {
    color: #0c5460;
    margin-bottom: 0;
}

.expert-services {
    margin: 25px 0;
}

.expert-services h3 {
    color: #333;
    margin-bottom: 15px;
}

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

.service-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.service-item h4 {
    margin-top: 0;
    color: #0c5460;
    font-size: 1.1em;
}

.service-item p {
    margin-bottom: 0;
    color: #495057;
    line-height: 1.5;
}

.alternative-diagnoses {
    margin: 20px 0;
}

.alternative-diagnoses h3 {
    color: #333;
    margin-bottom: 20px;
}

.alternative-diagnosis-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #6c757d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

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

.alternative-diagnosis-card h4 {
    margin: 0;
    color: #333;
}

/* Styles pour l'interface utilisateur interactive - Tâche 4.3 */

.progress-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-text {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.progress-percentage {
    font-weight: bold;
    color: #007bff;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-details {
    margin-top: 8px;
    text-align: center;
}

.progress-details small {
    color: #6c757d;
    font-size: 12px;
}

.symptoms-selection {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.symptoms-selection h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

.plant-type-selection {
    margin: 20px 0;
}

.plant-type-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.question-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #007bff;
}

.question-image {
    text-align: center;
    margin-bottom: 20px;
}

.question-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.question-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    text-align: center;
    margin: 20px 0;
}

.answer-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.btn-answer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 120px;
    justify-content: center;
}

.btn-answer:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-answer i {
    font-size: 2em;
    margin-bottom: 10px;
}

.btn-answer span {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.btn-answer small {
    font-size: 0.85em;
    opacity: 0.7;
    text-align: center;
}

.btn-answer-yes {
    border-color: #28a745;
    color: #28a745;
}

.btn-answer-yes:hover {
    background: #28a745;
    color: white;
}

.btn-answer-no {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-answer-no:hover {
    background: #dc3545;
    color: white;
}

.btn-answer-maybe {
    border-color: #ffc107;
    color: #856404;
}

.btn-answer-maybe:hover {
    background: #ffc107;
    color: #212529;
}

.btn-answer-unknown {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-answer-unknown:hover {
    background: #6c757d;
    color: white;
}

.diagnostic-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.diagnostic-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diagnostic-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.loading-container {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.error-container {
    margin: 20px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
    line-height: 1.5;
}

.interactive-result {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Animations d'entrée */
.question-card {
    animation: slideInUp 0.5s ease;
}

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

.btn-answer {
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* États des boutons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:disabled {
    background: #6c757d;
}

/* Styles pour l'interface Akinator - Tâche 7 */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: space-between;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 15px;
    color: #dee2e6;
    font-weight: bold;
}

.breadcrumb-item i {
    margin-right: 8px;
    font-size: 16px;
}

.breadcrumb-item.completed {
    color: #28a745;
    background: #d4edda;
}

.breadcrumb-item.active {
    color: #007bff;
    background: #cce5ff;
    font-weight: 600;
}

.breadcrumb-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Sélection des symptômes avec images */
.symptoms-instruction {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.symptom-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.symptom-card:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.symptom-card.selected {
    border-color: #28a745;
    background: #f8fff9;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.symptom-card .symptom-images {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.symptom-card .symptom-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.symptom-card:hover .symptom-img {
    border-color: #007bff;
}

.symptom-card.selected .symptom-img {
    border-color: #28a745;
}

.symptom-card h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
}

.symptom-card p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.symptom-card .selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.symptom-card.selected .selection-indicator {
    background: #28a745;
    color: white;
}

.selected-symptoms-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.selected-symptoms-summary h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1em;
}

.selected-symptoms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-symptom-tag {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Questions Akinator avec images */
.akinator-question-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #007bff;
    animation: slideInUp 0.5s ease;
}

.question-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.question-number {
    font-weight: 600;
    color: #007bff;
    font-size: 16px;
}

.candidates-remaining {
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 12px;
}

.question-images {
    margin-bottom: 25px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.question-image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.question-image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.question-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.akinator-question .question-text {
    text-align: center;
    margin: 20px 0;
}

.akinator-question #question-title {
    font-size: 1.4em;
    color: #333;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

.question-info {
    text-align: center;
    margin-top: 15px;
}

.question-category {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Boutons de réponse Akinator */
.akinator-answer-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
    animation: fadeInScale 0.4s ease;
}

.akinator-answer-buttons .btn-answer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.akinator-answer-buttons .btn-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.akinator-answer-buttons .btn-answer:hover::before {
    left: 100%;
}

.akinator-answer-buttons .btn-answer:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.akinator-answer-buttons .btn-answer i {
    font-size: 2.5em;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.akinator-answer-buttons .btn-answer span {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.akinator-answer-buttons .btn-answer small {
    font-size: 0.85em;
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
}

.akinator-answer-buttons .btn-answer-yes {
    border-color: #28a745;
    color: #28a745;
}

.akinator-answer-buttons .btn-answer-yes:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.akinator-answer-buttons .btn-answer-no {
    border-color: #dc3545;
    color: #dc3545;
}

.akinator-answer-buttons .btn-answer-no:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.akinator-answer-buttons .btn-answer-maybe {
    border-color: #ffc107;
    color: #856404;
}

.akinator-answer-buttons .btn-answer-maybe:hover {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.akinator-answer-buttons .btn-answer-unknown {
    border-color: #6c757d;
    color: #6c757d;
}

.akinator-answer-buttons .btn-answer-unknown:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Diagnostic final avec image */
.final-diagnosis-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideInUp 0.6s ease;
}

.diagnosis-celebration {
    margin-bottom: 30px;
}

.celebration-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 1s ease infinite;
}

.diagnosis-celebration h2 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.diagnosed-problem {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.problem-image-container {
    margin-bottom: 20px;
}

.problem-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.problem-name {
    font-size: 1.8em;
    font-weight: 700;
    margin: 15px 0 10px 0;
}

.problem-type {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.problem-description {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.9;
}

.diagnosis-confidence {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.confidence-meter {
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 600;
}

.confidence-percentage {
    font-size: 1.3em;
    color: #ffd700;
}

.treatment-recommendations {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.treatment-recommendations h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.treatment-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid;
}

.treatment-card.natural {
    border-left-color: #28a745;
}

.treatment-card.chemical {
    border-left-color: #ffc107;
}

.treatment-card.preventive {
    border-left-color: #17a2b8;
}

.treatment-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.treatment-card p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    opacity: 0.9;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Transitions entre questions */
.question-transition-out {
    animation: slideOutLeft 0.3s ease forwards;
}

.question-transition-in {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb {
        flex-direction: column;
        gap: 10px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        content: '↓';
        margin: 5px 0;
    }
    
    .symptoms-grid {
        grid-template-columns: 1fr;
    }
    
    .symptom-card .symptom-images {
        justify-content: center;
    }
    
    .images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .akinator-answer-buttons {
        grid-template-columns: 1fr;
    }
    
    .akinator-answer-buttons .btn-answer {
        min-height: 100px;
        padding: 20px;
    }
    
    .final-diagnosis-container {
        padding: 25px;
    }
    
    .diagnosis-celebration h2 {
        font-size: 1.5em;
    }
    
    .problem-image {
        width: 150px;
        height: 150px;
    }
    
    .treatment-grid {
        grid-template-columns: 1fr;
    }
    
    .answer-buttons {
        flex-direction: column;
    }
    
    .answer-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .symptom-item {
        margin: 8px 0;
        padding: 12px;
    }
    
    .question-card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .diagnosis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .diagnosis-actions, .uncertainty-actions, .consultation-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary, .btn-tertiary {
        width: 100%;
        text-align: center;
    }
}