/* ===================================
   CERTIFICATIONS SECTION STYLES - MODERN DESIGN
   =================================== */

/* Section principale des certifications */
.certifications {
    padding: 100px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

/* Effets de fond animés */
.certifications::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(5deg); }
    66% { transform: translate(-5%, 3%) rotate(-5deg); }
}

/* Pattern de points */
.certifications::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Header de section */
.certifications .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 70px;
}

.certifications .section-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certifications .section-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    text-align: center;
}

/* Grid des certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

/* Carte de certification moderne */
.certification-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Bordure animée au survol */
.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #ec4899);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(148, 163, 184, 0.1);
}

/* Effet de brillance */
.certification-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.certification-card:hover::after {
    right: -150%;
}

/* Icône de certification */
.cert-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.4s ease;
}

.cert-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certification-card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.certification-card:hover .cert-icon::before {
    opacity: 1;
    animation: pulse 2s ease infinite;
}

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

.cert-icon i {
    font-size: 36px;
    color: white;
    z-index: 1;
}

/* Contenu de la certification */
.cert-content {
    position: relative;
    z-index: 1;
}

.cert-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 15px;
    line-height: 1.4;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-issuer {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.cert-issuer i {
    color: #60a5fa;
    font-size: 18px;
}

.cert-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Liste de boutons de certificats moderne */
.cert-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.cert-button-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-button-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.2), 
        transparent
    );
    transition: left 0.5s ease;
}

.cert-button-item:hover::before {
    left: 100%;
}

.cert-button-item:hover {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-color: transparent;
    color: white;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.cert-button-item i:first-child {
    font-size: 20px;
    color: #60a5fa;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cert-button-item:hover i:first-child {
    color: white;
    transform: scale(1.15) rotate(5deg);
}

.cert-button-item span {
    flex: 1;
    text-align: left;
}

.cert-button-item i:last-child {
    font-size: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cert-button-item:hover i:last-child {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

/* Lien vers certificat unique */
.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.cert-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cert-link:hover::before {
    width: 300px;
    height: 300px;
}

.cert-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

.cert-link i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.cert-link span {
    position: relative;
    z-index: 1;
}

/* Section des statistiques */
.cert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    z-index: 1;
}

.cert-stat-item {
    text-align: center;
    padding: 35px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cert-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.cert-stat-item:hover::before {
    transform: scaleX(1);
}

.cert-stat-item:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.cert-stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.cert-stat-label {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications {
        padding: 70px 0;
    }

    .certifications .section-title {
        font-size: 2.2rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .certification-card {
        padding: 30px;
    }

    .cert-icon {
        width: 70px;
        height: 70px;
    }

    .cert-icon i {
        font-size: 32px;
    }

    .cert-title {
        font-size: 1.3rem;
    }

    .cert-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 50px;
        padding-top: 50px;
    }

    .cert-stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .certification-card {
        padding: 25px;
    }

    .cert-button-item {
        padding: 14px 16px;
    }

    .cert-link {
        width: 100%;
        justify-content: center;
    }
}
