/* ====================================
   CHIPO TRUST SECTION
   ==================================== */

.chipo-trust-section {
    position: relative;
    width: 100%;
    padding: 100px 5%;
    background: #ffffff;
    overflow: hidden;
}

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

/* GRID */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* ====================================
   INDICATEURS GAUCHE
   ==================================== */

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.trust-item {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.trust-item.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.trust-item:nth-child(1) { animation-delay: 0.1s; }
.trust-item:nth-child(2) { animation-delay: 0.2s; }
.trust-item:nth-child(3) { animation-delay: 0.3s; }
.trust-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(81, 164, 180, 0.2);
}

/* ICÔNE */
.trust-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(81, 164, 180, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.trust-item:hover .trust-icon {
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* CHIFFRES */
.trust-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #51a4b4, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* LABEL */
.trust-label {
    font-size: 0.9375rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================
   GRAPHIQUE DROITE
   ==================================== */

.trust-chart {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(30px);
}

.trust-chart.visible {
    animation: fadeInRight 0.8s ease 0.5s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chart-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
}

/* CANVAS */
.chart-canvas {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 25px;
}

#chipoChart {
    width: 100% !important;
    height: 100% !important;
}

/* TOOLTIP */
.chart-tooltip {
    position: absolute;
    background: rgba(26, 26, 46, 0.95);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.chart-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(26, 26, 46, 0.95);
}

/* LÉGENDE */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.legend-text {
    font-size: 0.9375rem;
    color: #666;
    font-weight: 500;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chipo-trust-section {
        padding: 60px 5%;
    }
    
    .trust-grid {
        gap: 50px;
    }
    
    .trust-indicators {
        gap: 20px;
    }
    
    .trust-item {
        padding: 25px 20px;
    }
    
    .trust-icon {
        width: 50px;
        height: 50px;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
    
    .trust-chart {
        padding: 30px 20px;
    }
    
    .chart-canvas {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .trust-indicators {
        grid-template-columns: 1fr;
    }
    
    .trust-number {
        font-size: 2rem;
    }
    
    .chart-canvas {
        height: 220px;
    }
}

/* ====================================
   PERFORMANCE
   ==================================== */

.trust-item,
.trust-chart,
.trust-icon {
    will-change: transform, opacity;
}

/* ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
    .trust-item,
    .trust-chart,
    .trust-icon {
        animation: none !important;
        transition: none !important;
    }
}
