/* ============================================
   STYLES SPÉCIFIQUES PIMPACT-QUOTIDIEN.HTML
   ============================================ */

/* Variables supplémentaires */
:root {
    --impact-primary: #00d4aa;
    --impact-secondary: #0984e3;
    --impact-accent: #6c5ce7;
    --impact-success: #00d4aa;
    --impact-warning: #fdcb6e;
    --impact-info: #3498db;
    
    --impact-gradient: linear-gradient(135deg, var(--impact-primary), var(--impact-accent));
    --impact-gradient-light: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(108, 92, 231, 0.1));
    
    --impact-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --impact-glow: 0 0 20px rgba(0, 212, 170, 0.25);
}

/* Page Impact */
.impact-page {
    background: var(--dark);
    min-height: 100vh;
}

/* Hero Section Impact */
.impact-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.1) 0%, 
        rgba(10, 15, 28, 0.95) 50%,
        rgba(10, 15, 28, 1) 100%);
    position: relative;
    overflow: hidden;
}

.impact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(9, 132, 227, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(108, 92, 231, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.impact-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.impact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--impact-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.impact-hero .subtitle {
    font-size: 1.5rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.impact-hero p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Hero */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--impact-shadow), var(--impact-glow);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--impact-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Section Calculateur */
.calculator-section {
    padding: 4rem 0;
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 170, 0.3), 
        transparent);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Panel Actions */
.actions-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.panel-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light);
}

.panel-header h2 i {
    color: var(--impact-primary);
}

.panel-header p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Filtres Catégories */
.categories-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.category-tab.active {
    background: var(--impact-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--impact-glow);
}

/* Liste des Actions */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.actions-list::-webkit-scrollbar {
    width: 6px;
}

.actions-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.actions-list::-webkit-scrollbar-thumb {
    background: var(--impact-primary);
    border-radius: 3px;
}

/* Item Action */
.action-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
    cursor: pointer;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateX(5px);
}

.action-item.selected {
    background: rgba(0, 212, 170, 0.1);
    border-color: var(--impact-primary);
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.15);
}

.action-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-icon {
    width: 48px;
    height: 48px;
    background: var(--impact-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--impact-glow);
}

.action-title {
    flex: 1;
}

.action-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.action-title p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

.action-toggle {
    width: 52px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.action-toggle.active {
    background: var(--impact-primary);
}

.action-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.action-toggle.active::after {
    transform: translateX(26px);
}

.action-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
}

.action-item.selected .action-details {
    display: block;
}

.action-co2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.co2-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--impact-primary);
}

.co2-unit {
    font-size: 0.9rem;
    color: var(--gray);
}

.frequency-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.frequency-label {
    font-size: 0.9rem;
    color: var(--gray-light);
    flex: 1;
}

.frequency-input {
    width: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--light);
    text-align: center;
}

.action-equivalence {
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

/* Panel Résultats */
.results-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.results-header {
    margin-bottom: 1rem;
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light);
}

.results-header h2 i {
    color: var(--impact-primary);
}

.results-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Impact Total */
.impact-total {
    background: var(--impact-gradient-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.total-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.total-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.total-value span {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--impact-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.total-value small {
    font-size: 1rem;
    color: var(--gray);
}

.total-equivalence {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--impact-primary);
    font-weight: 600;
}

.total-equivalence i {
    font-size: 1.2rem;
}

.help-text {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 400;
    margin-left: auto;
}

/* Répartition par Catégorie */
.impact-breakdown {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-breakdown h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 40px;
}

.bar-label {
    width: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light);
    flex-shrink: 0;
}

.bar-fill {
    flex: 1;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.bar-fill.maison::after { background: var(--impact-primary); }
.bar-fill.transport::after { background: var(--impact-secondary); }
.bar-fill.alimentation::after { background: var(--impact-accent); }
.bar-fill.numerique::after { background: var(--impact-warning); }

.bar-value {
    width: 80px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light);
    flex-shrink: 0;
}

/* Équivalences Concrètes */
.equivalences-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.equivalences-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.equivalences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.equivalence-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.equivalence-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.eq-icon {
    width: 40px;
    height: 40px;
    background: var(--impact-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.eq-content {
    flex: 1;
}

.eq-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.25rem;
}

.eq-label {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.2;
}

/* Recommandations */
.recommendations {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendations h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.rec-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-light);
    transition: var(--transition);
}

.rec-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
}

.rec-item i {
    color: var(--impact-primary);
    font-size: 0.8rem;
}

/* Section Partage */
.share-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Explications */
.explanations-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--light);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
}

.explanations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.explanation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.explanation-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.exp-icon {
    width: 60px;
    height: 60px;
    background: var(--impact-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.explanation-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.explanation-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Section Inspiration */
.inspiration-section {
    padding: 4rem 0;
}

.collective-impact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.collective-stat {
    text-align: center;
}

.collective-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--impact-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.collective-label {
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 200px;
}

.inspiration-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.inspiration-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

.inspiration-cta p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .actions-panel {
        position: static;
    }
    
    .impact-hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-card {
        min-width: 170px;
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .impact-hero {
        padding: 6rem 0 3rem;
    }
    
    .impact-hero h1 {
        font-size: 2.2rem;
    }
    
    .impact-hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    
    .equivalences-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-tabs {
        justify-content: center;
    }
    
    .share-section {
        justify-content: center;
    }
    
    .collective-impact {
        gap: 2rem;
    }
    
    .collective-stat {
        flex: 1;
        min-width: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .impact-hero h1 {
        font-size: 1.8rem;
    }
    
    .panel-header h2,
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .total-value span {
        font-size: 2.5rem;
    }
    
    .action-header {
        flex-wrap: wrap;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .categories-tabs {
        gap: 0.25rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes impactPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes barFill {
    from { width: 0; }
    to { width: var(--fill-width); }
}

/* Classes utilitaires */
.impact-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--impact-gradient);
    color: white;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: impactPulse 2s infinite;
}

.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--impact-primary);
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* États spéciaux */
.success-message {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--impact-primary);
    color: var(--impact-primary);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}