/* ========== CERTIFICATIONS - VERSION ADAPTÉE ========== */

.section-certifications {
    background: var(--dark-bg);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ========== IMAGE BACKGROUND ========== */
.section-certifications .section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.35;
}

/* ✅ Overlay très transparent */
.section-certifications .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.3) 0%,
        rgba(26, 31, 58, 0.25) 50%,
        rgba(10, 14, 39, 0.3) 100%
    );
    z-index: 1;
}

/* Container au-dessus de l'image */
.section-certifications .container {
    position: relative;
    z-index: 2;
}

/* ========== EN-TÊTE SECTION ========== */
.section-certifications .section-badge {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ffa500, #ff6347);
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(255, 165, 0, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-certifications .section-badge i {
    margin-right: 8px;
}

.section-certifications .display-4 {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(255, 165, 0, 0.4);
    margin-bottom: 15px;
}

.section-certifications .lead {
    color: #e0e0e0;
    font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

/* ========== GRILLE ÉDUCATION ========== */
.education-grid {
    margin-bottom: 60px;
}

.education-card {
    position: relative;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.education-card:nth-child(1) { animation-delay: 0.1s; }
.education-card:nth-child(2) { animation-delay: 0.2s; }
.education-card:nth-child(3) { animation-delay: 0.3s; }
.education-card:nth-child(4) { animation-delay: 0.4s; }
.education-card:nth-child(5) { animation-delay: 0.5s; }
.education-card:nth-child(6) { animation-delay: 0.6s; }
.education-card:nth-child(7) { animation-delay: 0.7s; }

.education-card:hover {
    background: rgba(10, 14, 39, 0.95);
    border-color: #ffa500;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 165, 0, 0.4);
}

/* Badge coin supérieur droit */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-badge.current-badge {
    background: rgba(255, 0, 110, 0.2);
    border-color: #ff006e;
    color: #ff006e;
}

.card-badge i {
    font-size: 12px;
}

/* Icône principale */
.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffa500, #ff6347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.5);
}

/* Couleurs d'icônes par type */
.education-card.current .card-icon {
    background: linear-gradient(135deg, #ff006e, #d90429);
}

.education-card.security .card-icon {
    background: linear-gradient(135deg, #ff006e, #d90429);
}

.education-card.network .card-icon {
    background: linear-gradient(135deg, #00ff88, #00d9ff);
}

.education-card.cloud .card-icon {
    background: linear-gradient(135deg, #0066ff, #00ccff);
}

.education-card.linux .card-icon {
    background: linear-gradient(135deg, #ffa500, #ff6347);
}

.education-card.dev .card-icon {
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
}

.education-card.base .card-icon {
    background: linear-gradient(135deg, #6c757d, #495057);
}

/* Titre */
.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* École */
.card-school {
    font-size: 1rem;
    color: #ffa500;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Date */
.card-date {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(255, 165, 0, 0.4);
    margin-bottom: 20px;
}

/* Liste détails */
.card-details {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.card-details li {
    padding: 8px 0;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== STATISTIQUES ========== */
.education-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 35px 25px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.stat-item:hover {
    background: rgba(10, 14, 39, 0.95);
    border-color: #ffa500;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.4);
}

.stat-item i {
    font-size: 2.5rem;
    color: #ffa500;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 8px rgba(255, 165, 0, 0.5));
}

.stat-number {
    display: inline-block;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 0 2px 8px rgba(255, 165, 0, 0.6);
}

.stat-plus {
    color: #ffa500;
    font-size: 36px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #d0d0d0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== DOMAINES D'EXPERTISE ========== */
.expertise-domains {
    padding: 50px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.domains-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.domains-title i {
    color: #ffa500;
    margin-right: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.8));
}

.domain-card {
    background: rgba(10, 14, 39, 0.7);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: #ffa500;
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.3);
    background: rgba(10, 14, 39, 0.85);
}

.domain-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffa500, #ff6347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.5);
}

.domain-icon i {
    font-size: 2rem;
    color: white;
}

.domain-card h5 {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.domain-skills {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.domain-skills li {
    padding: 8px 0;
    color: #d0d0d0;
    position: relative;
    padding-left: 25px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.domain-skills li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.domain-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cert-badge {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #ffa500;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffa500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== CERTIFICATIONS FUTURES ========== */
.future-certifications {
    padding: 40px;
    background: rgba(123, 44, 191, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px dashed rgba(123, 44, 191, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.future-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.future-title i {
    color: #ff006e;
    margin-right: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.6));
}

.future-card {
    background: rgba(10, 14, 39, 0.7);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(123, 44, 191, 0.4);
    transition: all 0.3s ease;
    height: 100%;
}

.future-card:hover {
    transform: scale(1.05);
    border-color: #ff006e;
    background: rgba(10, 14, 39, 0.85);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.future-card i {
    font-size: 2.5rem;
    color: #ff006e;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(255, 0, 110, 0.5));
}

.future-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.future-date {
    font-size: 0.9rem;
    color: #d0d0d0;
    font-style: italic;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .section-certifications .display-4 {
        font-size: 2rem;
    }

    .expertise-domains {
        padding: 30px 20px;
    }

    .education-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .education-card {
        padding: 30px 20px;
    }

    .domains-title,
    .future-title {
        font-size: 1.5rem;
    }

    .expertise-domains {
        padding: 25px 15px;
    }

    .education-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }
}

/* ========== OPTIMISATIONS ========== */
.section-certifications .section-bg-image {
    will-change: transform;
    transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
    .education-card,
    .future-card i {
        animation: none !important;
    }
}