/* ========================================
   NAVIGATION (BOUTONS RETOUR/SUIVANT)
======================================== */

.finder-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.btn-nav {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-back {
    background: #f5f5f5;
    color: #666;
}

.btn-back:hover {
    background: #e0e0e0;
    color: #333;
}

.btn-next {
    background: #d0d0d0;
    color: #999;
    cursor: not-allowed;
    margin-left: auto;
}

.btn-next.enabled,
.btn-next:not([disabled]) {
    background: linear-gradient(135deg, #3f5b44 0%, #637863 100%);
    color: white;
    cursor: pointer;
}

.btn-next.enabled:hover,
.btn-next:not([disabled]):hover {
    background: linear-gradient(135deg, #3f5b44 0%, #637863 100%);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #3f5b44 0%, #637863 100%);
}

.btn-primary {
    background: #6b9b6b;
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
}

.btn-primary:hover {
    background: #5a8a5a;
    transform: scale(1.05);
}

/* ========================================
   BASE & CONTAINER
======================================== */

.solution-finder-container {
    max-width: 1280px;
    padding: 20px;
}

.finder-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.finder-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.4s ease;
}

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

.finder-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
}

/* ========================================
   BARRE DE PROGRESSION
======================================== */

.finder-progress {
    margin-bottom: 30px;
}

.progress-text {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3f5b44 0%, #637863 100%);
    transition: width 0.4s ease;
}

/* ========================================
   QUESTION
======================================== */

.finder-question {
    font-size: 1.5em;
    font-weight: 700;
    color: #3f5b44;
    margin-bottom: 30px;
    text-align: center;
}

.results-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #3f5b44;
    margin-bottom: 20px;
    text-align: center;
}

/* ========================================
   OPTIONS
======================================== */

.finder-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 2em 0;
}

.finder-option {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid #c5c5c5;
    position: relative;
}

.finder-option:hover:not(.disabled) {
    border-color: #6b9b6b;
    transform: translateY(-4px);
}

.option-icon {
    font-size: 48px;
    display: block;
}

.option-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #3f5b44;
    margin-bottom: 8px;
}

.option-desc {
    display: block;
    color: black;
    font-size: 13px;
    line-height: 1.5;
}

/* État sélectionné */
.finder-option.selected {
    background: linear-gradient(135deg, #3f5b44 0%, #637863 100%);
    background: #e8f0e7;
    border-color: #627762;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(107, 155, 107, 0.35);
}

.finder-option.selected .option-title,
.finder-option.selected .option-desc {
    /* color: white; */
}

.finder-option.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: white;
    color: #3f5b44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #3f5b44;
}

/* État désactivé */
.finder-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

/* ========================================
   RÉSULTATS
======================================== */

.results-loading {
    text-align: center;
    padding: 60px 20px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6b9b6b;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.recommendation-text {
    font-size: 16px;
    color: #3f5b44;
    text-align: center;
    margin: 20px 0;
}

/* Grille de résultats */
.solution-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Carte de résultat */
.solution-result-card {
    background: #E8F0E7;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.solution-result-card a {
    text-decoration: none;
    border-bottom: 0 !important;
}

.solution-result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(107, 155, 107, 0.2);
}

/* Image */
.solution-result-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f5f5;
}

.solution-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-result-card:hover .solution-result-image img {
    transform: scale(1.1);
}

/* Contenu */
.solution-result-content {
    padding: 25px;
}

.solution-result-title {
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.solution-result-excerpt {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Message "Aucun résultat" */
.no-results-message {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.no-results-message h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.no-results-message p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .finder-options {
        grid-template-columns: 1fr;
    }
    
    .finder-navigation {
        flex-direction: column;
    }
    
    .btn-nav {
        width: 100%;
    }
    
    .btn-next {
        margin-left: 0;
    }
    
    .solution-results-grid {
        grid-template-columns: 1fr;
    }
}