@charset "UTF-8";

.selector-wrapper { font-family: 'Raleway', sans-serif; width: 100%; max-width: 900px; margin: 20px auto; color: #333; }
    .selector-wrapper h2 { text-align: center; color: #3b3b3b; }
    .selector-wrapper > p.intro { text-align: center; margin-bottom: 30px; color: #555; }

    .step {
        border: 1px solid #ddd; border-radius: 10px; padding: 20px 24px; margin-bottom: 16px;
        background: #fafafa;
    }
    .step-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
    .step-number {
        width: 28px; height: 28px; border-radius: 50%; background: #3b3b3b; color: #fff;
        display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9em;
        flex-shrink: 0;
    }
    .step.done .step-number { background: #f1af00; }
    .step-title { font-weight: 700; font-size: 1.05em; color: #3b3b3b; }
    .step-summary { display: none; }

    /* Etape verrouillée : le titre reste visible (pleine lisibilité),
       seul le contenu à choisir est masqué jusqu'à ce que l'étape
       précédente soit répondue. */
    .step.locked .width-row,
    .step.locked .option-group,
    .step.locked .step-hint {
        display: none;
    }

    @keyframes optionsReveal {
        from { opacity: 0; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .step:not(.locked) .width-row,
    .step:not(.locked) .option-group {
        animation: optionsReveal 0.3s ease;
    }

    /* Etape largeur : slider */
    .width-row { display: flex; align-items: center; gap: 16px; }
    .width-row input[type="range"] {
        flex: 1; accent-color: #f1af00; height: 6px; cursor: pointer;
    }
    .width-readout {
        min-width: 70px; text-align: center; font-weight: 700; font-size: 1.1em;
        background: #3b3b3b; color: #fff; border-radius: 6px; padding: 6px 10px;
    }

    /* Etapes a options (protection / manoeuvre / toile) */
    .option-group { display: flex; flex-wrap: wrap; gap: 10px; }
    .option-btn {
        padding: 10px 16px; border-radius: 8px; border: 2px solid #ccc; background: #fff;
        cursor: pointer; font-family: 'Raleway', sans-serif; font-size: 0.9em; color: #333;
        transition: all 0.15s;
    }
    .option-btn:hover:not(:disabled) { border-color: #3b3b3b; }
    .option-btn.selected { border-color: #f1af00; background: #fff8e6; font-weight: 700; color: #3b3b3b; }
    .option-btn:disabled {
        opacity: 0.35; cursor: not-allowed; text-decoration: line-through; background: #eee;
    }

    .step-hint { font-size: 0.78em; color: #888; margin-top: 8px; font-style: italic; }

    #result-area { display: none; text-align: center; border: 2px solid #f1af00; padding: 20px; margin-top: 10px; border-radius: 8px; }
    #result-area h3 { color: #3b3b3b; margin-top: 0; }
    .result-card { border: 1px solid #eee; border-radius: 8px; padding: 16px; margin: 12px 0; position: relative; }
    .result-card.recommended { border: 2px solid #f1af00; background: #fffdf5; }
    .team-badge {
        display: inline-block; background: #f1af00; color: #3b3b3b; font-size: 0.75em;
        font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px;
    }
    .differentiator {
        font-size: 0.85em; color: #555; font-style: italic; margin: 6px 0 10px;
    }
    .result-card .product-name { font-size: 1.15em; font-weight: bold; color: #3b3b3b; margin-bottom: 4px; }
    .result-card img { max-width: 100%; border-radius: 5px; margin: 10px 0; }
    .result-card .price-tag { font-weight: bold; font-size: 1.15em; margin: 8px 0; }
    .result-card a {
        background: #f1af00; color: #000; padding: 10px 22px; display: inline-block;
        text-decoration: none; font-weight: bold; border-radius: 5px;
    }
    #no-match-note {
        display: none; background: #fdecea; border: 1px solid #a33; border-radius: 6px;
        padding: 14px; color: #a33; text-align: center; margin-top: 10px;
    }