/* Page Certifications - Styles */

/* Section certifications */
.certifications-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
                url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* S'assurer que le container est au-dessus des images */
.certifications-section .container {
    position: relative;
    z-index: 5;
}

/* Ajouter des éléments décoratifs flottants */
.certifications-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=600&q=80');
    background-size: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.35;
    z-index: 0;
}

.certifications-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=600&q=80');
    background-size: cover;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    opacity: 0.35;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* En-tête */
.certifications-header {
    text-align: center;
    margin-bottom: 60px;
    color: white;
    position: relative;
    z-index: 1;
}

.certifications-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.certifications-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Carte certification complète */
.certification-card-full {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.certification-card-full:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(108, 92, 231, 0.35);
}

/* Icône de la certification */
.cert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.cert-icon i {
    font-size: 2.5rem;
    color: white;
}

/* Badge type de certification */
.cert-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cert-badge.cisco {
    background: linear-gradient(135deg, #049fd9 0%, #1ba0d8 100%);
}

.cert-badge.openclassrooms {
    background: linear-gradient(135deg, #7451eb 0%, #a06ee1 100%);
}

/* Date de la certification */
.cert-date {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-date i {
    margin-right: 8px;
}

/* Titre de la certification */
.cert-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Émetteur */
.cert-issuer {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cert-issuer i {
    margin-right: 10px;
}

/* Description */
.cert-description {
    color: #666;
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Compétences acquises */
.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.skill-badge {
    background: rgba(108, 92, 231, 0.1);
    color: #667eea;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: #667eea;
    transform: translateY(-2px);
}

.skill-badge i {
    margin-right: 6px;
}

/* Bouton voir certificat */
.btn-view-cert {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.btn-view-cert:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(108, 92, 231, 0.5);
    color: white;
}

/* Bouton retour */
.back-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #667eea;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    font-size: 1.5rem;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
    color: #667eea;
}

/* Année timeline */
.timeline-year {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 3rem 0 2rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

/* Responsive */
@media (max-width: 768px) {
    .certifications-header h1 {
        font-size: 2rem;
    }
    
    .certifications-header p {
        font-size: 1.1rem;
    }
    
    .certification-card-full {
        padding: 2rem;
    }
    
    .cert-title {
        font-size: 1.5rem;
    }
    
    .cert-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .timeline-year {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
    }
    
    .back-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    .cert-icon {
        width: 60px;
        height: 60px;
    }
    
    .cert-icon i {
        font-size: 2rem;
    }
    
    /* Cacher toutes les images décoratives sur mobile */
    .certifications-section::before,
    .certifications-section::after {
        display: none;
    }
}

/* S'assurer que le contenu est visible */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Catégories de certifications */
.certification-category {
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

/* Nouvelle version avec encadré complet */
.certification-category-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    border: 3px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.certification-category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(108, 92, 231, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.4);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.cisco-icon {
    background: linear-gradient(135deg, #00bceb 0%, #0083b0 100%);
}

.openclassrooms-icon {
    background: linear-gradient(135deg, #7451eb 0%, #5a3db8 100%);
}

.category-icon:hover {
    transform: rotate(5deg) scale(1.1);
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.category-description {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Container des certifications */
.category-certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

/* Pour une seule certification, limiter la largeur */
.category-certifications .certification-card-compact:only-child {
    max-width: 350px;
}

/* Cartes de certifications compactes - FORMAT CARRÉ */
.certification-card-compact {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    min-height: 400px;
    height: auto;
}

.certification-card-compact:hover {
    transform: translateY(-10px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.3);
}

.cert-header-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.cert-icon-compact {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.cert-icon-compact i {
    font-size: 1.8rem;
    color: white;
}

.cert-info-compact {
    flex: 1;
    width: 100%;
}

.cert-title-compact {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}

.cert-date-compact {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
}

.cert-date-compact i {
    font-size: 0.75rem;
}

.cert-description-compact {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.skill-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.btn-view-cert-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    margin-top: auto;
    width: 100%;
}

.btn-view-cert-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
    color: white;
}

/* Ajustement des cartes dans les catégories (ancien style) */
.certification-category .certification-card-full {
    margin-left: 1rem;
    border-left: 4px solid transparent;
    transition: all 0.4s ease;
}

.certification-category .certification-card-full:hover {
    border-left-color: #667eea;
}

/* Responsive pour les catégories */
@media (max-width: 768px) {
    .certification-category-box {
        padding: 1.5rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    .certification-card-compact {
        padding: 1.2rem;
        aspect-ratio: auto;
        min-height: 450px;
        height: auto;
    }
    
    .cert-header-compact {
        gap: 0.6rem;
    }
    
    .cert-icon-compact {
        width: 50px;
        height: 50px;
    }
    
    .cert-icon-compact i {
        font-size: 1.5rem;
    }
    
    .cert-title-compact {
        font-size: 1.1rem;
    }
    
    .cert-description-compact {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .certification-card-compact:hover {
        transform: translateY(-5px);
    }
    
    .certification-category .certification-card-full {
        margin-left: 0;
        border-left: none;
        border-top: 4px solid transparent;
    }
    
    .certification-category .certification-card-full:hover {
        border-top-color: #667eea;
        border-left-color: transparent;
    }
    
    /* Optimisation des boutons "Certificat" sur mobile */
    .btn-view-cert-compact {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95rem;
        margin-top: auto;
    }
    
    /* Espacement des cartes de certification sur mobile */
    .certification-card-compact {
        margin-bottom: 2.5rem;
        padding: 1.5rem;
    }
    
    /* Ajuster l'espace entre les éléments de la carte */
    .cert-header-compact {
        margin-bottom: 0.8rem;
    }
    
    .cert-description-compact {
        margin-bottom: 0.8rem;
    }
    
    .cert-skills {
        margin-bottom: 0rem;
    }
}
