/* ============================================
   MonEntrepriseFacile - Questionnaire Styles
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

/* Animated Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-elements .circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-bg-elements .circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-bg-elements .circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.hero-bg-elements .circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(201, 169, 98, 0.4));
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.hero-cta i {
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* ============================================
   Questionnaire Container
   ============================================ */

.questionnaire-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Progress Section */
.progress-section {
    padding: 2rem;
    /*background: rgba(10, 15, 26, 0.95);*/
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    position: sticky;
    top: 70px;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-text {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-counter {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.progress-counter .current {
    font-size: 2rem;
    font-weight: 700;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-dot.active {
    background: var(--gold-primary);
    box-shadow: 0 0 15px rgba(201, 169, 98, 0.5);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--gold-primary);
    border-color: var(--gold-light);
}

.step-dot:hover {
    transform: scale(1.1);
    background: rgba(201, 169, 98, 0.5);
}

/* ============================================
   Question Card
   ============================================ */

.questions-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Center the question container inside the page container */
.questions-wrapper .container {
    display: flex;
    justify-content: center;
}

.question-card {
    background: linear-gradient(145deg, rgba(17, 29, 53, 0.9) 0%, rgba(13, 21, 38, 0.95) 100%);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.question-card.active {
    animation: questionEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.question-card.exit {
    animation: questionExit 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes questionEnter {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes questionExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
}

/* Question Card Decorations */
.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.question-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.5), transparent);
}

/* Question Number Badge */
.question-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy-darkest);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.4);
}

/* Question Title */
.question-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    margin-top: 1rem;
}

.question-subtitle {
    font-family: var(--font-elegant);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 2rem;
}

/* Question Input Area */
.question-input-area {
    margin-bottom: 2rem;
}

.question-input {
    width: 100%;
    background: rgba(26, 39, 68, 0.6);
    border: 2px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    padding: 1.25rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: all 0.3s ease;
    resize: none;
}

.question-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.question-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(26, 39, 68, 0.9);
    box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.15);
}

textarea.question-input {
    min-height: 140px;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.danger {
    color: var(--danger);
}

/* Option Buttons (for choice questions) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-btn {
    background: rgba(26, 39, 68, 0.5);
    border: 2px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(201, 169, 98, 0.1);
    transform: translateY(-2px);
}

.option-btn.selected {
    border-color: var(--gold-primary);
    background: rgba(201, 169, 98, 0.2);
    color: var(--gold-primary);
}

.option-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold-primary);
}

/* Navigation Buttons */
.question-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn-prev {
    background: transparent;
    border: 1px solid rgba(201, 169, 98, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.nav-btn-prev:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.nav-btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn-next {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: var(--navy-darkest);
    font-weight: 600;
}

.nav-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.4);
}

.nav-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn-next:hover i {
    transform: translateX(3px);
}

.nav-btn-prev:hover i {
    transform: translateX(-3px);
}

/* Skip Button */
.skip-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.skip-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Results Section
   ============================================ */

.results-container {
    min-height: 100vh;
    padding: 100px 1.5rem 3rem;
}

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

.results-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.results-header p {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Results Cards */
.results-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.result-card {
    background: linear-gradient(145deg, var(--navy-dark), var(--navy-darker));
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
.result-card:nth-child(6) { animation-delay: 0.6s; }

.result-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.result-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card-icon i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.result-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
}

.result-card-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.result-card-content h4 {
    font-family: var(--font-display);
    color: var(--gold-light);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.1rem;
}

.result-card-content ul {
    list-style: none;
    padding: 0;
}

.result-card-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-card-content li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

/* Feasibility Badge */
.feasibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.feasibility-badge.positive {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.3), rgba(45, 106, 79, 0.1));
    border: 1px solid rgba(45, 106, 79, 0.5);
    color: #7dd3a8;
}

.feasibility-badge.warning {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.3), rgba(184, 134, 11, 0.1));
    border: 1px solid rgba(184, 134, 11, 0.5);
    color: #f0d78c;
}

.feasibility-badge.negative {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.1));
    border: 1px solid rgba(139, 0, 0, 0.5);
    color: #f0a8a8;
}

/* CTA Section */
.results-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(201, 169, 98, 0.1), rgba(201, 169, 98, 0.05));
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: var(--radius-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.results-cta h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.results-cta p {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.results-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-cta-buttons a {
    text-decoration: none;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(201, 169, 98, 0.2);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto 2rem;
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-family: var(--font-elegant);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-steps {
    margin-top: 2rem;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.loading-step.active {
    color: var(--gold-primary);
}

.loading-step.completed {
    color: var(--success);
}

.loading-step i {
    width: 24px;
    text-align: center;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 767.98px) {
    .hero-icon {
        width: 80px;
        height: 80px;
    }
    
    .question-card {
        padding: 2rem 1.5rem;
    }
    
    .question-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: -18px;
    }
    
    .question-nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-section {
        padding: 1rem;
    }
    
    .steps-indicator {
        flex-wrap: wrap;
    }
    
    .result-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 1rem;
    }
    
    .questions-wrapper {
        padding: 2rem 1rem;
    }
    
    .question-title {
        font-size: 1.2rem;
    }
    
    .question-input {
        padding: 1rem;
        font-size: 1rem;
    }
}
