/* ========================================
   AIDE FINANCIERES - VERSION COMPACTE COMPLETE
   ======================================== */

/* Variables de couleurs */
:root {
    --color-primary: #0065cb;
    --color-primary-dark: #1a2b5e;
    --color-subvention: #10b981;
    --color-pret: #3b82f6;
    --color-credit: #f59e0b;
    --color-featured: #ef4444;
}

/* ====================
   HERO SECTION WITH WHITE SPACE
   ==================== */

/* Bande blanche au-dessus du Hero */
.hero-financial::before {
    content: '';
    display: block;
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: #ffffff;
    z-index: 1;
}

.hero-financial {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 18px 20px;
    margin-top: 100px;
    margin-bottom: 40px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-financial h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ====================
   FILTRES ET RECHERCHE
   ==================== */
.filters-section {
    padding: 20px;
    background: #f9fafb;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
}

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

.btn-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

/* Filtres chips (ancienne version - à cacher) */
.quick-filters {
    display: none !important;
}

/* ====================
   ONGLETS (NOUVELLE VERSION)
   ==================== */
.programs-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 30px 0;
    border-bottom: 2px solid #e5e7eb;
}

.tab-button {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.tab-button:hover {
    color: var(--color-primary);
    background: #f9fafb;
}

.tab-button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tab-button.active .tab-count {
    background: var(--color-primary);
    color: white;
}

/* ====================
   TOGGLE VUE TABLEAU
   ==================== */
.view-toggle {
    text-align: center;
    margin: 20px 0;
}

.btn-toggle-view {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-view:hover {
    background: var(--color-primary);
    color: white;
}

/* ====================
   GRILLE DE CARTES - CRITIQUE: display: grid ajouté!
   ==================== */
.programs-section {
    padding: 40px 20px;
    background: white;
}

.programs-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1700px;
    margin: 0 auto;
}

/* ====================
   CARTES DE PROGRAMMES
   ==================== */
.program-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.program-card.featured {
    grid-column: span 1;
    border-color: var(--color-featured);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.1);
}

.program-card.medium {
    grid-column: span 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* BADGES AVEC COULEURS */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-subvention {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-subvention);
}

.badge-pret {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-pret);
}

.badge-credit {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-credit);
}

.badge-featured {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-featured);
}

/* ICÔNES */
.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* TITRES ET TEXTES */
.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #1f2937;
}

.card-organisme {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* MONTANT */
.card-montant {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}

.montant-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 4px;
}

.montant-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

/* DESCRIPTION */
.card-description {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* HIGHLIGHTS */
.card-highlights {
    margin-bottom: 15px;
}

.card-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-highlights li {
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.card-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-subvention);
    font-weight: 700;
}

/* FOOTER ET BOUTONS */
.card-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-primary {
    flex: 1;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 8px 16px;
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* ====================
   PAGINATION
   ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 16px;
    background: #f3f4f6;
    border: 2px solid #9ca3af;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination button.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================
   VUE TABLEAU
   ==================== */
.table-view {
    display: none;
    overflow-x: auto;
}

.table-view.active {
    display: block;
}

.programs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.programs-table thead {
    background: var(--color-primary-dark);
    color: white;
}

.programs-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.programs-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.programs-table tbody tr:hover {
    background: #f9fafb;
}

.table-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.table-badge.subvention {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-subvention);
}

.table-badge.pret {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-pret);
}

.table-badge.credit {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-credit);
}

/* ====================
   AUCUN RÉSULTAT
   ==================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1f2937;
}

/* ====================
   FAQ SECTION - CORPORATE MINIMAL
   ==================== */
.faq-section {
    padding: 80px 20px;
    background: #ffffff;
}

/* Section Header */
.faq-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

.faq-section .faq-subtitle {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Item - Minimal Card */
.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    position: relative;
}

/* Subtle Accent Bar */
.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(0, 101, 203, 0.08);
}

.faq-item.active::before {
    opacity: 1;
}

/* Question */
.faq-question {
    width: 100%;
    padding: 20px 22px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    transition: color 0.2s ease;
    text-align: left;
}

.faq-question:hover {
    color: var(--color-primary);
}

/* Chevron Icon - Subtle Gray */
.faq-question::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
    opacity: 0.6;
}

.faq-item:hover .faq-question::after {
    opacity: 1;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230065cb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    opacity: 1;
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 22px 20px;
}

.faq-answer p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Lists in answers */
.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.faq-answer ul li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.faq-answer ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--color-primary);
    font-weight: 400;
    font-size: 18px;
}

/* Links in answers */
.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: currentColor;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 20px;
    }

    .faq-section h2 {
        font-size: 28px;
    }

    .faq-section .faq-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .faq-question {
        font-size: 15px;
        padding: 18px 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 18px;
    }
}

/* ====================
   FILTRES AVANCÉS
   ==================== */
.advanced-filters {
    display: none;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.advanced-filters.visible {
    display: flex;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.btn-reset-filters {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ====================
   BOUTONS D'ACTION
   ==================== */
.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-comparator,
.btn-quiz {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-comparator:hover,
.btn-quiz:hover {
    background: var(--color-primary);
    color: white;
}

/* ====================
   MODALS
   ==================== */
.modal {
    display: none;
    pointer-events: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.modal.active {
    display: block;
    pointer-events: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    padding: 20px 30px;
    background: var(--color-primary-dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: 1fr !important;
    }

    .programs-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .tab-button {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .hero-financial h1 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 20px;
    }
}

/* ====================
   QUIZ PROFESSIONNEL
   ==================== */

/* Progress Bar */
.quiz-progress-container {
    padding: 20px 30px 0;
    background: #f9fafb;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, #667eea 100%);
    transition: width 0.4s ease;
    border-radius: 10px;
}

.quiz-step-indicator {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 10px;
}

.quiz-step-indicator .current-step {
    color: var(--color-primary);
    font-size: 16px;
}

/* Quiz Modal Styling */
.quiz-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
}

.quiz-modal .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-modal .modal-header h2::before {
    content: '❓';
    font-size: 28px;
}

.quiz-modal .modal-body {
    padding: 0;
}

/* Quiz Steps */
#quizContent {
    padding: 30px;
}

.quiz-step {
    animation: fadeIn 0.4s ease;
}

.quiz-step h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

/* Quiz Options */
.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.quiz-option {
    padding: 20px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #667eea 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.quiz-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.quiz-option:hover::before {
    opacity: 0.05;
}

.quiz-option:active {
    transform: translateY(-2px);
}

/* Quiz Results - PROFESSIONAL VERSION */
.quiz-results {
    animation: fadeIn 0.5s ease;
    padding: 30px;
}

.quiz-results h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

.quiz-results h3::before {
    content: '🎉 ';
}

#quizRecommendations {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

/* Recommendation Cards - Premium Design */
.quiz-recommendation {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.quiz-recommendation:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}

/* Ranking Badge */
.quiz-recommendation:nth-child(1)::after {
    content: '🥇';
    position: absolute;
    top: -8px;
    right: 24px;
    font-size: 32px;
}

.quiz-recommendation:nth-child(2)::after {
    content: '🥈';
    position: absolute;
    top: -8px;
    right: 24px;
    font-size: 32px;
}

.quiz-recommendation:nth-child(3)::after {
    content: '🥉';
    position: absolute;
    top: -8px;
    right: 24px;
    font-size: 32px;
}

/* Card Header */
.quiz-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.quiz-recommendation-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Icon */
.quiz-recommendation-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.quiz-recommendation-icon.subvention {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    color: var(--color-subvention);
}

.quiz-recommendation-icon.pret {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
    color: var(--color-pret);
}

.quiz-recommendation-icon.credit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: var(--color-credit);
}

.quiz-recommendation-icon svg {
    width: 28px;
    height: 28px;
}

/* Title */
.quiz-recommendation h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Organisme */
.quiz-recommendation-organisme {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Montant Section */
.quiz-recommendation-montant {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.quiz-recommendation-montant-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}

.quiz-recommendation-montant-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

/* Reason/Description */
.quiz-recommendation-reason {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Highlights */
.quiz-recommendation-highlights {
    margin-bottom: 20px;
}

.quiz-recommendation-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.quiz-recommendation-highlights li {
    font-size: 13px;
    color: #374151;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}

.quiz-recommendation-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-subvention);
    font-weight: 700;
    font-size: 16px;
}

/* Button */
.quiz-recommendation .btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 4px;
}

.quiz-results .quiz-close-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Quiz */
@media (max-width: 768px) {
    .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-option {
        min-height: 60px;
    }

    .quiz-step h3 {
        font-size: 18px;
    }
}

/* ====================
   COMPARATEUR - PROFESSIONAL VERSION
   ==================== */

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

/* Comparison Cards - Premium Design */
.comparison-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: visible;
}

.comparison-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
}

/* Icon */
.comparison-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.comparison-item-icon.subvention {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    color: var(--color-subvention);
}

.comparison-item-icon.pret {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
    color: var(--color-pret);
}

.comparison-item-icon.credit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: var(--color-credit);
}

.comparison-item-icon svg {
    width: 28px;
    height: 28px;
}

/* Header */
.comparison-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.comparison-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
}

.comparison-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Organisme */
.comparison-item-organisme {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}

/* Montant Section - Prominent Display */
.comparison-item-montant {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.comparison-item-montant-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}

.comparison-item-montant-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

/* Comparison Rows - Simple Info Display */
.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.comparison-row:last-of-type {
    border-bottom: none;
}

.comparison-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.comparison-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

/* Highlights */
.comparison-item-highlights {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.comparison-item-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.comparison-item-highlights li {
    font-size: 13px;
    color: #374151;
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}

.comparison-item-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-subvention);
    font-weight: 700;
    font-size: 16px;
}

/* Button */
.comparison-item .btn-primary {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    margin-top: 16px;
}

/* Responsive Comparator */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}
