/* Titre de la section impact */




.impact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #000B10;
    text-align: center;
}

/* Grille des métriques d'impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px auto;
    max-width: 1400px;
    width: calc(100% - 40px);
    padding: 0;
}

@media (max-width: 1200px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .impact-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
        width: calc(100% - 30px);
    }
    
    .impact-section h2 {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        gap: 15px;
        margin: 20px auto;
    }
}

.impact-chart,
.impact-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Effet de brume sur les cartes */
.impact-chart::before,
.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
    z-index: -1;
    border-radius: 24px;
}

/* Effet de bordure subtil */
.impact-chart::after,
.impact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.impact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 250px;
    padding: 20px 25px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
}

.impact-card .card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.placeholder-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.impact-card h3 {
    color: #000B10;
    margin: 10px 0 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.impact-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    max-width: 200px;
}

.impact-card.empty {
    cursor: pointer;
    transition: all 0.3s ease;
}

.impact-card.empty:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.impact-card.empty:hover .card-content {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.impact-card.empty:hover .placeholder-icon {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Styles spécifiques au graphique d'impact */
.impact-chart {
    font-family: 'Rubik', sans-serif;
    width: 100%;
    text-align: center;
    padding: 20px 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.impact-chart .impact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #000B10;
    text-align: center;
}

.impact-chart .chart-title {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #000B10;
    font-weight: 600;
}

.impact-chart .meta-comment {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 12px 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.impact-chart .bar-group {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    gap: 15px;
}

.impact-chart .bar-container {
    flex: 1;
    max-width: 120px;
}

.impact-chart .bar-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    white-space: nowrap;
}

.impact-chart .bar-wrapper {
    height: 80px;
    background: rgba(240, 240, 240, 0.7);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 6px;
}

.impact-chart .bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: height 0.8s ease-out;
    border-radius: 10px 10px 0 0;
}

.impact-chart .bar-before {
    background: linear-gradient(to top, #7C89FF, #9BA3FF);
    height: 0;
}

.impact-chart .bar-after {
    background: linear-gradient(to top, #FF7C7C, #FF9B9B);
    height: 0;
}

.impact-chart .bar-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000B10;
}

.impact-chart .percentage-increase {
    margin-top: auto;
    font-weight: 600;
    color: #FF7C7C;
    font-size: 0.95rem;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.impact-chart:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.impact-card.empty {
    cursor: pointer;
    transition: all 0.3s ease;
}

.impact-card.empty:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    background-color: #f9f9ff;
}

/* Styles pour le graphique de jauge */
.gauge-chart {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-chart .chart-title {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #000B10;
    font-weight: 600;
}

.gauge-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.gauge-body {
    width: 160px;
    height: 80px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    background: #f0f0f0;
    margin-bottom: 15px;
}

.gauge-fill {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #7C89FF, #9BA3FF);
    transition: transform 1.5s ease-out;
    transform-origin: top center;
    height: 100%;
}

.gauge-cover {
    width: 100px;
    height: 50px;
    background: white;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.gauge-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000B10;
    line-height: 1;
    margin-bottom: 2px;
}

.gauge-label {
    font-size: 0.7rem;
    color: #666;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.5s ease 0.5s;
}

.gauge-meta {
    text-align: center;
    margin-top: 10px;
}

.gauge-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.comparison-before {
    color: #666;
    font-size: 0.9rem;
}

.comparison-arrow {
    font-size: 1.2rem;
    color: #7C89FF;
}

.comparison-after {
    color: #4CAF50;
    font-weight: 600;
    font-size: 1rem;
}

.gauge-desc {
    font-size: 0.8rem;
    color: #666;
    max-width: 200px;
    margin: 0 auto;
}

/* Animation lorsque la jauge est visible */
.gauge-chart.animate .gauge-fill {
    transform: rotate(0.5turn);
}

.gauge-chart.animate .gauge-label {
    opacity: 1;
    transform: translateY(0);
}

.chart-title {
    font-size: 28px;
    font-weight: 700;
    color: #000B10;
    margin-bottom: 30px;
    text-align: center;
}

.meta-comment {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 0 auto 30px;
    max-width: 600px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    gap: 15px;
    transition: all 0.4s ease-in-out;
    border: 1px solid #eee;
}

.meta-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meta-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.meta-comment-content {
    text-align: left;
    flex: 1;
}

.meta-comment-author {
    font-weight: 700;
    font-size: 16px;
    color: #000B10;
    margin-bottom: 4px;
}

.meta-comment-text {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.bar-group {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    margin: 40px 0 30px;
    padding: 0 20px;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-label {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
    font-weight: 500;
}

.bar-wrapper {
    width: 50px;
    height: 200px;
    background: #f5f5ff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.bar {
    width: 100%;
    height: 0;
    transition: height 1s ease-out, background-color 0.3s ease;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.bar-before {
    background: linear-gradient(to top, #7C89FF, #9BA3FF);
}

.bar-after {
    background: linear-gradient(to top, #FF7C7C, #FF9B9B);
}

.bar-value {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #000B10;
    position: relative;
    padding: 8px 15px;
    background: #f8f9ff;
    border-radius: 30px;
    display: inline-block;
    min-width: 70px;
    box-shadow: 0 4px 12px rgba(124, 137, 255, 0.15);
}

.percentage-increase {
    font-size: 20px;
    font-weight: 700;
    color: #FF7C7C;
    margin: 30px 0 10px;
    padding: 12px 25px;
    background: #fff5f5;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 124, 124, 0.15);
}

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

.meta-comment, .bar-group, .percentage-increase {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .bar-group {
        gap: 30px;
    }
    
    .bar-wrapper {
        width: 40px;
        height: 160px;
    }
    
    .bar-value {
        font-size: 18px;
        padding: 6px 12px;
    }
    
    .chart-title {
        font-size: 24px;
    }
    
    .meta-comment {
        padding: 12px 15px;
    }
    
    .meta-comment-avatar {
        width: 40px;
        height: 40px;
    }
}

/* Styles pour les images dans les cartes d'impact */
.impact-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    margin: 15px 0;
}

.impact-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.impact-chart:hover .impact-full-image {
    transform: scale(1.05);
}

/* Texte superposé sur l'image */
.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
    color: white;
    padding: 20px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay-highlight {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #E9E7FF;
}

.overlay-description {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}
