/* ===== QUIZ SHELL — TYPEFORM STYLE ===== */

/* Le quiz occupe toute la hauteur sous la navbar */
.quiz-shell {
    height: calc(100vh - 80px);
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ── Barre de progression (fine, en haut) ── */
.quiz-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 240, 255, 0.1);
    z-index: 30;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    width: 0%;
}

/* ── Top bar (retour + compteur) ── */
.quiz-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem 0;
    flex-shrink: 0;
    position: relative;          /* nécessaire pour que z-index fonctionne */
    z-index: 20;
    background: var(--color-bg, #0a0e1a); /* masque les cartes qui remontent derrière */
}

.quiz-back-btn {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 0.38rem 0.9rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    visibility: hidden; /* JS contrôle la visibilité */
}

.quiz-back-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.06);
}

.quiz-counter {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

/* ── Zone des slides ── */
.quiz-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ── Slides (une question à la fois) ── */
.q-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;    /* column : margin:auto sur .q-content centre verticalement */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem clamp(1.5rem, 10vw, 8rem);
    /* transition sur la base : toujours disponible */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease;
    opacity: 0;
    transform: translateX(0);
}

/* États d'animation */
.q-slide.enter-right {
    transform: translateX(60px);
    opacity: 0;
    transition: none; /* pas de transition lors du positionnement initial */
}
.q-slide.enter-left {
    transform: translateX(-60px);
    opacity: 0;
    transition: none;
}
.q-slide.active {
    transform: translateX(0);
    opacity: 1;
}
.q-slide.exit-left {
    transform: translateX(-60px);
    opacity: 0;
}
.q-slide.exit-right {
    transform: translateX(60px);
    opacity: 0;
}

/* ── Contenu de chaque slide ── */
.q-content {
    width: 100%;
    max-width: 680px;
    margin: auto;          /* centre verticalement quand espace dispo */
    padding: 0.5rem 0;
}

.q-hint {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-primary);
    opacity: 0.75;
    margin-bottom: 0.6rem;
}

.q-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.q-body {
    /* body de question */
}

/* ── OPTIONS (type option-select) ── */
.q-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.q-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.55rem;
}

.q-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1.5px solid rgba(0, 240, 255, 0.16);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: left;
    color: var(--color-text);
    font-family: var(--font-body);
    position: relative;
    width: 100%;
}

.q-option:hover {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.06);
    transform: translateX(4px);
}

.q-option.active {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.11);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.16);
}

/* Badge lettre (A / B / C) */
.q-option-letter {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: all 0.15s;
}

.q-option.active .q-option-letter {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg);
}

.q-option-icon {
    font-size: 1.35rem;
    color: rgba(0, 240, 255, 0.65);
    flex-shrink: 0;
    transition: color 0.15s;
}

.q-option.active .q-option-icon {
    color: var(--color-primary);
}

.q-option-text {
    flex: 1;
    min-width: 0;
}

.q-option-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.q-option-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
    transition: color 0.15s;
}

.q-option.active .q-option-desc {
    color: rgba(0, 240, 255, 0.6);
}

.q-option-check {
    position: absolute;
    right: 1rem;
    font-size: 1rem;
    color: var(--color-primary);
}

/* ── USAGE GRID (Q1) ── */
.q-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.6rem;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
}

.q-usage-card {
    background: rgba(26, 32, 48, 0.5);
    border: 2px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 0.9rem 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    color: var(--color-text);
    font-family: var(--font-body);
    user-select: none;
}

.q-usage-card:hover {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.07);
    transform: translateY(-2px);
}

.q-usage-card.active {
    border-color: var(--color-primary);
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.18);
}

.q-usage-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.35rem;
}

.q-usage-name {
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.2;
    color: var(--color-primary);
}

.q-usage-rank {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* ── CHIPS LOGICIELS ── */
.q-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.q-chip {
    padding: 0.42rem 0.9rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
}

.q-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.08);
}

.q-chip.active {
    background: rgba(255, 0, 229, 0.12);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 0 8px rgba(255, 0, 229, 0.2);
}

/* ── JEUX GRID ── */
.q-games-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.q-games-search-wrap {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.q-games-search-wrap i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 0.9rem;
    pointer-events: none;
}

.q-games-search {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.3rem;
    background: rgba(26, 32, 48, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.q-games-search:focus {
    outline: none;
    border-color: var(--color-primary);
}

.q-games-search::placeholder { color: var(--color-text-muted); }

.q-sort-btns {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.q-sort-btn {
    padding: 0.55rem 0.75rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
}

.q-sort-btn:hover,
.q-sort-btn.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.1);
}

.q-games-no-results {
    display: none;
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.q-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
}

.q-game-card {
    position: relative;
    border: 2px solid rgba(0, 240, 255, 0.14);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.3);
}

.q-game-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 240, 255, 0.2);
}

.q-game-card input[type="checkbox"] {
    display: none;
}

.q-game-card.checked {
    border-color: var(--color-secondary);
    box-shadow: 0 0 16px rgba(255, 0, 229, 0.3);
}

.q-game-card.checked::after {
    content: '\f26b';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    z-index: 2;
}

.q-game-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgba(0, 240, 255, 0.05);
}

.q-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.q-game-card:hover .q-game-img img {
    transform: scale(1.05);
}

.q-game-img.no-img::after {
    content: '\f3d2';
    font-family: 'bootstrap-icons';
    font-size: 2rem;
    color: rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.q-game-name {
    padding: 0.4rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
    line-height: 1.2;
}

/* ── BUDGET SLIDER ── */
.q-budget-display {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 28px rgba(0, 240, 255, 0.45);
    letter-spacing: 0.02em;
}

.q-range-container {
    position: relative;
    height: 30px;
    margin: 0.5rem 0;
}

.q-range-bg,
.q-range-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
}

.q-range-bg {
    left: 0;
    right: 0;
    background: rgba(0, 240, 255, 0.12);
}

.q-range-fill {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    pointer-events: none;
}

.q-range-container input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
}

.q-range-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 3px solid var(--color-primary);
    cursor: grab;
    pointer-events: all;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
    transition: box-shadow 0.2s, transform 0.15s;
}

.q-range-container input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    transform: scale(1.15);
}

.q-range-container input[type="range"]:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.2);
}

.q-range-container input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 3px solid var(--color-primary);
    cursor: grab;
    pointer-events: all;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.q-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ── TEXTAREA ── */
.q-textarea {
    width: 100%;
    min-height: 130px;
    padding: 1rem;
    background: rgba(26, 32, 48, 0.6);
    border: 1.5px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.q-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

.q-textarea::placeholder {
    color: var(--color-text-muted);
}

/* ── RÉCAPITULATIF (slide final) ── */
.q-recap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.q-recap-card {
    background: rgba(26, 32, 48, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 14px;
    padding: 1.25rem;
    animation: slideInRecap 0.4s ease both;
}

.q-recap-card:nth-child(2) { animation-delay: 0.08s; }
.q-recap-card:nth-child(3) { animation-delay: 0.16s; }
.q-recap-card:nth-child(4) { animation-delay: 0.24s; }

.q-recap-card-full { grid-column: 1 / -1; }

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

.q-recap-card-title {
    font-family: var(--font-display);
    font-size: 0.88rem;
    color: var(--color-primary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.q-recap-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.q-recap-item:last-child { border-bottom: none; }

.q-recap-rank {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.q-recap-item-label {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.q-recap-item-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.q-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 0.5rem;
}
.q-recap-row:last-child { border-bottom: none; }

.q-recap-row-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.q-recap-row-value {
    font-weight: 600;
    font-size: 0.88rem;
    text-align: right;
}

.q-recap-budget-value {
    color: var(--color-primary);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.q-recap-detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.q-recap-detail-item:last-child { border-bottom: none; }

.q-recap-detail-name {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}

.q-recap-detail-line {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 0.1rem;
}

.q-recap-detail-line strong { color: var(--color-text); }

.q-recap-commentaire {
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.88rem;
}

.q-recap-cta {
    text-align: center;
    padding-bottom: 1rem;
}

.quiz-btn-send {
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, #22c55e, #00f0ff);
    border: none;
    border-radius: 50px;
    color: #0a0e1a;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 36px rgba(34, 197, 94, 0.35);
}

.quiz-btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(34, 197, 94, 0.55);
}

.q-recap-security {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

/* ── FOOTER (bouton Continuer / Passer) ── */
.quiz-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.5rem 1.2rem;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.98) 0%, transparent 100%);
    z-index: 20;
}

.quiz-btn-continue {
    padding: 0.85rem 2.4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: none;
    border-radius: 50px;
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.28);
}

.quiz-btn-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 240, 255, 0.48);
}

.quiz-btn-continue:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.quiz-enter-hint {
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

.quiz-enter-hint kbd {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    padding: 0.08rem 0.38rem;
    font-family: var(--font-body);
    font-size: 0.73rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .quiz-shell {
        height: calc(100vh - 70px);
        margin-top: 70px;
    }

    .q-slide {
        padding: 0.75rem 1.25rem;
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .q-usage-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 52vh;
    }

    .q-options-grid {
        grid-template-columns: 1fr;
    }

    .q-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    }

    .q-recap-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .q-usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quiz-btn-continue {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SLIDE CHARGEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.q-loading-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

.q-loading-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.q-loading-icon {
    font-size: 4rem;
    color: var(--color-primary);
    animation: loading-pulse 1.6s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.12);
                filter: drop-shadow(0 0 14px var(--color-primary)); }
}

.q-loading-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.q-loading-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.q-loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #a855f7);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.q-loading-step {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    color: var(--color-primary);
    min-height: 1.4em;
    transition: opacity 0.3s;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SLIDE RÉSULTATS — WRAPPER
   ═══════════════════════════════════════════════════════════════════════════ */

.q-results-wrap {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
}

.q-results-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.q-results-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.q-results-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.q-results-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.q-results-tag-budget {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.q-results-profile-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.q-results-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 1rem;
    text-align: center;
}

.q-results-retry {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}
.q-results-retry:hover { border-color: var(--color-primary); color: var(--color-primary); }


/* ── Barres de besoins ───────────────────────────────────────────────────── */

.q-need-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.q-need-bar-row {
    display: grid;
    grid-template-columns: 155px 1fr 38px;
    align-items: center;
    gap: 0.8rem;
}

.q-need-bar-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.q-need-bar-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.q-need-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #a855f7);
    border-radius: 3px;
    width: 0%;
    transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.q-need-bar-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    color: var(--color-primary);
    text-align: right;
}


/* ── Cartes PC ───────────────────────────────────────────────────────────── */

.q-pc-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.q-pc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.2s;
}

.q-pc-card[data-type="needs"] {
    border-color: rgba(0, 240, 255, 0.18);
}
.q-pc-card[data-type="needs"]:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}
.q-pc-card[data-type="budget"] {
    border-color: rgba(168, 85, 247, 0.18);
}
.q-pc-card[data-type="budget"]:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

/* ── Carte "budget trop serré" ─────────────────────────────────────────── */
.q-pc-card-sorry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    padding: 2rem 1.5rem;
    min-height: 220px;
}
.q-pc-card-sorry:hover {
    transform: none;
}

.q-pc-card-sorry-icon {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.18);
}

.q-pc-card-sorry-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.q-pc-card-sorry-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.32);
    line-height: 1.65;
}

.q-pc-card-header {
    padding: 0.9rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.q-pc-card[data-type="needs"]   .q-pc-card-header { background: rgba(0, 240, 255, 0.06); }
.q-pc-card[data-type="budget"]  .q-pc-card-header { background: rgba(168, 85, 247, 0.06); }

.q-pc-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.q-pc-card[data-type="needs"]   .q-pc-badge { color: var(--color-primary); }
.q-pc-card[data-type="budget"]  .q-pc-badge { color: #a855f7; }

.q-pc-scores-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.q-pc-score-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
}

.q-pc-score-caption {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.28);
}

.q-pc-score-row {
    display: flex;
    align-items: baseline;
    gap: 0.12rem;
}

.q-pc-score {
    font-family: 'Orbitron', monospace;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.q-pc-score-budget {
    font-size: 1.3rem;
}

.q-pc-score-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 2px;
}

.q-pc-comps {
    padding: 0.75rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.q-pc-comp {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.77rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.q-pc-comp:last-child { border-bottom: none; }

.q-pc-comp-label {
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    min-width: 60px;
}

.q-pc-comp-name {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    max-width: 150px;
}

.q-pc-comp-score {
    flex-shrink: 0;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1px 5px;
    min-width: 44px;
    text-align: center;
}

.q-pc-footer {
    padding: 0.85rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.8rem;
    flex-wrap: wrap;
}

.q-pc-price {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f59e0b;
}

.q-pc-btn-export {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0099cc 100%);
    color: #000f1a;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.q-pc-btn-export:hover { opacity: 0.88; transform: translateY(-1px); }

.q-pc-card[data-type="budget"] .q-pc-btn-export {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}


/* ── Lien contact ─────────────────────────────────────────────────────────── */

.q-results-contact {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.q-results-contact p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 0.6rem;
}

.q-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.q-contact-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}


/* ── Responsive résultats ────────────────────────────────────────────────── */

@media (max-width: 680px) {
    .q-pc-cards {
        grid-template-columns: 1fr;
    }
    .q-need-bar-row {
        grid-template-columns: 120px 1fr 32px;
        gap: 0.5rem;
    }
    .q-need-bar-label { font-size: 0.73rem; }
    .q-results-title  { font-size: 1.2rem; }
}
