/* ====================================
   CHIPO POURQUOI - SECTION
   ==================================== */

.chipo-pourquoi-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    padding: 80px 5%;
    overflow: hidden;
    background: #ffffff;
}

/* ====================================
   PARTICULES ANIMÉES
   ==================================== */

.chipo-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.chipo-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -40px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* ====================================
   CONTAINER
   ==================================== */

.chipo-pourquoi-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

/* ====================================
   IMAGE AVEC TRACKING
   ==================================== */

.chipo-pourquoi-image {
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    animation: imageAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
}

@keyframes imageAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chipo-tracking-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.chipo-tracking-image:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* ====================================
   CONTENU
   ==================================== */

.chipo-pourquoi-content {
    opacity: 0;
    transform: translateX(30px);
    animation: contentSlide 0.8s ease 0.5s forwards;
}

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

/* ====================================
   TITRE
   ==================================== */

.chipo-pourquoi-titre {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.chipo-highlight {
    position: relative;
    display: inline;
    background: linear-gradient(180deg, transparent 60%, #51a4b440 60%);
    padding: 0 0.2em;
    font-weight: 800;
    transition: all 0.3s ease;
}

.chipo-highlight:hover {
    background: linear-gradient(180deg, transparent 50%, #51a4b460 50%);
    transform: translateY(-2px);
}

/* ====================================
   PARAGRAPHE
   ==================================== */

.chipo-pourquoi-texte {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 2.5rem;
}

.chipo-bright {
    color: #51a4b4;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.chipo-bright:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(81, 164, 180, 0.3);
}

/* ====================================
   BOUTON CTA
   ==================================== */

.chipo-pourquoi-cta {
    margin-top: 2.5rem;
}

.chipo-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    background-color: #51a4b4;
    color: #ffffff;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(81, 164, 180, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chipo-cta-btn span:first-child {
    position: relative;
    z-index: 2;
}

.chipo-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(81, 164, 180, 0.4);
}

.chipo-cta-btn:active {
    transform: translateY(-2px);
}

/* Effet Ripple */
.chipo-btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.chipo-cta-btn.ripple-active .chipo-btn-ripple {
    animation: btnRipple 0.6s ease-out;
}

@keyframes btnRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Animation de pulsation subtile */
.chipo-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

@media (max-width: 1024px) {
    .chipo-pourquoi-container {
        gap: 60px;
    }
    
    .chipo-pourquoi-titre {
        font-size: 2.5rem;
    }
    
    .chipo-pourquoi-texte {
        font-size: 1.0625rem;
    }
}

@media (max-width: 768px) {
    .chipo-pourquoi-section {
        padding: 60px 5%;
        min-height: auto;
    }
    
    .chipo-pourquoi-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .chipo-pourquoi-image {
        order: 2;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .chipo-pourquoi-content {
        order: 1;
        text-align: center;
    }
    
    .chipo-pourquoi-titre {
        font-size: 2rem;
    }
    
    .chipo-pourquoi-texte {
        font-size: 1rem;
    }
    
    .chipo-cta-btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .chipo-pourquoi-titre {
        font-size: 1.75rem;
    }
    
    .chipo-pourquoi-texte {
        font-size: 0.9375rem;
    }
}

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

.chipo-tracking-image,
.chipo-pourquoi-content,
.chipo-cta-btn {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====================================
   ACCESSIBILITÉ
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    .chipo-pourquoi-image,
    .chipo-pourquoi-content,
    .chipo-particle,
    .chipo-cta-btn {
        animation: none !important;
        transition: none !important;
    }
    
    .chipo-tracking-image {
        transform: none !important;
    }
}

/* Focus visible pour accessibilité clavier */
.chipo-cta-btn:focus-visible {
    outline: 3px solid #51a4b4;
    outline-offset: 4px;
}
