/* ===== SECTION "POURQUOI HMK" - VERSION SPECTACULAIRE ===== */
/* Fichier CSS dédié pour éviter les conflits */

/* 1. CONTENEUR PRINCIPAL */
.why-hmk-section {
    position: relative;
    padding: 140px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
    min-height: 100vh;
}

/* 2. GRANDE LUEUR DE FOND ANIMÉE - VERSION BOOSTÉE */
.why-hmk-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1500px;
    height: 1500px;
    background: radial-gradient(circle, 
        rgba(0, 224, 255, 0.25) 0%, 
        rgba(0, 150, 255, 0.15) 30%, 
        rgba(0, 100, 255, 0.08) 60%, 
        transparent 80%);
    border-radius: 50%;
    filter: blur(200px);
    animation: why-hmk-mega-glow 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes why-hmk-mega-glow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translate(-45%, -55%) scale(1.2) rotate(90deg);
        opacity: 1;
    }
    50% { 
        transform: translate(-55%, -45%) scale(1.1) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.3) rotate(270deg);
        opacity: 1;
    }
}

/* 3. EN-TÊTE DE LA SECTION */
.why-hmk-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.why-hmk-badge {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    border: 2px solid rgba(0, 224, 255, 0.4);
    border-radius: 35px;
    color: #00E0FF;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.2);
    animation: why-hmk-badge-pulse 3s ease-in-out infinite;
}

@keyframes why-hmk-badge-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 224, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 224, 255, 0.4);
        transform: scale(1.02);
    }
}

.why-hmk-header h2 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(0, 224, 255, 0.3);
}

.why-hmk-header h2 span {
    background: linear-gradient(135deg, #00E0FF 0%, #0099FF 50%, #00E0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: why-hmk-text-shimmer 3s ease-in-out infinite;
}

@keyframes why-hmk-text-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.why-hmk-header p {
    font-size: 1.4rem;
    color: #c0c0c0;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 4. GRILLE DES PILIERS */
.why-hmk-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* 5. CARTES DES PILIERS - GLASSMORPHISM AMÉLIORÉ */
.why-hmk-pillar-card {
    background: linear-gradient(135deg, 
        rgba(22, 27, 34, 0.8) 0%, 
        rgba(15, 20, 25, 0.6) 100%);
    border: 2px solid rgba(0, 224, 255, 0.2);
    border-radius: 25px;
    padding: 50px 35px;
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transform-style: preserve-3d;
}

/* Fond contrasté pour améliorer la lisibilité au survol */
.why-hmk-pillar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 15, 30, 0.4) 0%, 
        rgba(0, 10, 20, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 25px;
    z-index: 1;
}

.why-hmk-pillar-card:hover::after {
    opacity: 1;
}

/* Effet de lueur directionnelle amélioré pour la lisibilité */
.why-hmk-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 224, 255, 0.08) 0%, 
        rgba(0, 150, 255, 0.04) 30%,
        transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 25px;
    pointer-events: none;
    z-index: 1;
}

.why-hmk-pillar-card:hover::before {
    opacity: 1;
}

/* Bordure lumineuse en dégradé - nouvel élément */
.why-hmk-pillar-card {
    position: relative;
}

.why-hmk-pillar-card:hover {
    box-shadow: 
        0 30px 60px rgba(0, 224, 255, 0.25),
        0 0 50px rgba(0, 224, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 30px rgba(0, 224, 255, 0.05),
        0 0 0 2px rgba(0, 224, 255, 0.6);
}

@keyframes why-hmk-border-flow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Effet de survol 3D complexe avec meilleure lisibilité */
.why-hmk-pillar-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(0, 224, 255, 0.8);
    background: linear-gradient(135deg, 
        rgba(25, 35, 50, 0.95) 0%, 
        rgba(20, 30, 40, 0.9) 100%);
    box-shadow: 
        0 30px 60px rgba(0, 224, 255, 0.25),
        0 0 50px rgba(0, 224, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 30px rgba(0, 224, 255, 0.05);
}

/* 6. ICÔNES DES PILIERS */
.pillar-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    border: 2px solid rgba(0, 224, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.pillar-icon-wrapper i {
    font-size: 40px;
    color: #00E0FF;
    transition: all 0.5s ease;
    text-shadow: 0 0 20px rgba(0, 224, 255, 0.5);
}

.why-hmk-pillar-card:hover .pillar-icon-wrapper {
    transform: translateY(-10px) scale(1.1);
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.4) 0%, rgba(0, 150, 255, 0.2) 100%);
    border-color: rgba(0, 224, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.3);
}

.why-hmk-pillar-card:hover .pillar-icon-wrapper i {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 224, 255, 0.8);
    transform: scale(1.1);
}

/* 7. CONTENU DES CARTES - LISIBILITÉ AMÉLIORÉE */
.why-hmk-pillar-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.why-hmk-pillar-card:hover h3 {
    color: #ffffff;
    text-shadow: 
        0 0 25px rgba(0, 224, 255, 0.6),
        0 2px 15px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.why-hmk-pillar-card p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.why-hmk-pillar-card:hover p {
    color: #e8e8e8;
    text-shadow: 
        0 0 15px rgba(0, 224, 255, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 3px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 8. BOUTON WHATSAPP - PULSATION FORTE */
.why-hmk-whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 45px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin: 0 auto;
    max-width: 350px;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    animation: why-hmk-whatsapp-mega-pulse 1.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes why-hmk-whatsapp-mega-pulse {
    0%, 100% {
        box-shadow: 
            0 15px 40px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 25px 60px rgba(37, 211, 102, 0.6),
            0 0 0 20px rgba(37, 211, 102, 0);
        transform: scale(1.05);
    }
}

.why-hmk-whatsapp-button i {
    font-size: 28px;
    animation: why-hmk-whatsapp-icon-bounce 2s ease-in-out infinite;
}

@keyframes why-hmk-whatsapp-icon-bounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.why-hmk-whatsapp-button:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 
        0 30px 80px rgba(37, 211, 102, 0.5),
        0 0 50px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #2EE86C 0%, #1AA55A 100%);
}

.why-hmk-whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.why-hmk-whatsapp-button:hover::before {
    left: 100%;
}

/* 9. RESPONSIVITÉ */

/* Tablette */
@media (max-width: 992px) {
    .why-hmk-pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-hmk-pillar-card {
        min-height: 350px;
        padding: 40px 30px;
    }
    
    .why-hmk-header h2 {
        font-size: 3.5rem;
    }
    
    .why-hmk-section {
        padding: 120px 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .why-hmk-header h2 {
        font-size: 2.8rem;
    }
    
    .why-hmk-header p {
        font-size: 1.2rem;
    }
    
    .why-hmk-pillar-card {
        padding: 35px 25px;
        min-height: 320px;
    }
    
    .pillar-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .pillar-icon-wrapper i {
        font-size: 32px;
    }
    
    .why-hmk-pillar-card h3 {
        font-size: 1.6rem;
    }
    
    .why-hmk-pillar-card p {
        font-size: 1rem;
    }
    
    .why-hmk-whatsapp-button {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
    
    .why-hmk-section {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .why-hmk-header h2 {
        font-size: 2.2rem;
    }
    
    .why-hmk-pillar-card {
        padding: 30px 20px;
    }
    
    .why-hmk-whatsapp-button {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .why-hmk-whatsapp-button i {
        font-size: 24px;
    }
}