/* ==========================================================================
   QUESTIONNAIRE STRATÉGIQUE (Modal)
   ========================================================================== */
.q-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.q-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.q-modal-container {
    width: 100%;
    max-width: 700px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.q-modal-overlay.active .q-modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Progress Bar */
.q-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.q-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-light);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Close button */
.q-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-gray-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.q-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

/* Viewport for steps */
.q-viewport {
    position: relative;
    padding: 60px 40px 40px 40px;
    display: grid;
    align-items: center;
}

/* Steps */
.q-step {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.q-step.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.q-step.previous {
    transform: translateX(-40px);
}

/* Step Content Styling */
.q-step-emoji {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.q-step-title {
    font-family: var(--font-drama);
    font-size: 2.2rem;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.q-step-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Inputs & Buttons */
.q-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    margin-bottom: 20px;
}

.q-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.q-option-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: var(--text-gray-light);
    font-family: var(--font-body);
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.q-option-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    color: white;
    transform: translateX(5px);
}

.q-option-btn i {
    font-size: 1.3rem;
    color: var(--primary-light);
    opacity: 0.7;
}

.q-action-row {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

/* End Screen */
.q-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .q-viewport {
        padding: 50px 20px 20px 20px;
    }

    .q-step-title {
        font-size: 1.8rem;
    }
}