/* Compensation Carbone - Styles Spécifiques */
.solution-page.compensation-page {
    background: var(--dark);
}

/* Hero Section Compensation */
.solution-hero.compensation-hero {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    overflow: hidden;
}

.compensation-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.compensation-visualization {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    position: relative;
}

.compensation-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(34, 197, 94, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(0, 212, 170, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.3) 2px, transparent 2px);
    background-size: 120px 120px, 180px 180px, 150px 150px;
    animation: floatLeaves 6s ease-in-out infinite;
}

@keyframes floatLeaves {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.compensation-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.compensation-hero .solution-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

/* Section Projets */
.projects-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-category:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(34, 197, 94, 0.2);
}

.project-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.project-category h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-category p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.project-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.project-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.project-features li {
    padding: 0.5rem 0;
    color: var(--gray-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 600;
}

/* Section Calculateur */
.calculator-section {
    padding: 6rem 0;
}

.compensation-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-inputs h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #22c55e;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--gray-light);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #22c55e;
    background: rgba(255, 255, 255, 0.15);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.btn-calculate {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
}

.calculator-results {
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.results-placeholder {
    text-align: center;
    color: var(--gray);
}

.placeholder-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.results-placeholder h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.results-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #22c55e;
    text-align: center;
}

.compensation-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: var(--gray-light);
}

.summary-item .value {
    font-weight: 700;
    color: #22c55e;
}

.impact-breakdown {
    margin-bottom: 2rem;
}

.impact-breakdown h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.impact-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.impact-item i {
    color: #22c55e;
    width: 20px;
    text-align: center;
}

.impact-item strong {
    color: #22c55e;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section Marketplace */
.marketplace-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.marketplace-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group label {
    color: var(--gray-light);
    font-weight: 500;
    margin-right: 0.5rem;
}

.filter-group select {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--light);
    min-width: 150px;
}

.projects-marketplace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(34, 197, 94, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.project-badge.gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.project-badge.verra {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-location {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-location i {
    color: #22c55e;
    margin-right: 0.5rem;
}

.project-description {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.project-stat {
    text-align: center;
    flex: 1;
}

.project-stat .stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #22c55e;
    display: block;
    margin-bottom: 0.25rem;
}

.project-stat .stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-impact {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 1rem;
    font-size: 0.8rem;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.impact-item i {
    font-size: 0.7rem;
}

.btn-project {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-project:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.marketplace-cta {
    text-align: center;
}

/* Section Traçabilité */
.tracability-section {
    padding: 6rem 0;
}

.tracability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tracability-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.tracability-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.tracability-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.tracability-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tracability-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tracability-card ul {
    list-style: none;
    text-align: left;
}

.tracability-card li {
    padding: 0.5rem 0;
    color: var(--gray-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.tracability-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-category,
.tracability-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .compensation-calculator {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .projects-marketplace {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        min-width: auto;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-impact {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .compensation-calculator {
        padding: 1.5rem;
    }
    
    .calculator-results {
        padding: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .tracability-grid {
        grid-template-columns: 1fr;
    }
}

/* États de filtre */
.project-card.hidden {
    display: none;
}

/* Loading states */
.btn-calculate.loading {
    position: relative;
    color: transparent;
}

.btn-calculate.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}