/* 
 * STYLES POUR LA PAGE CERTIFICATIONS - THÈME COHÉRENT
 * Design aligné avec la page index pour une expérience unifiée
 * Auteur: Manley.B
 */

/* ==================== SECTION HERO CERTIFICATIONS ==================== */
/* Section d'introduction similaire à l'accueil */

#certifications-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6em 8vw;
    gap: 3em;
    text-align: left;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(0, 255, 128, 0) 0%, rgba(255, 187, 0, 0) 100%);
    /* États d'animation */
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-out;
    will-change: transform, opacity;
}

#certifications-hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.certifications-content {
    flex: 1 1 0;
    min-width: 250px;
}

#certifications-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #000000;
    user-select: none;
}

#certifications-hero p {
    font-size: 1.5em;
    color: #666b68;
    margin-top: 10px;
    max-width: 35em;
}

.certifications-image {
    flex: 0 0 auto;
    max-width: 400px;
    width: 30vw;
    min-width: 200px;
    height: auto;
    border-radius: 50%;
    margin: 0;
    display: block;
}

/* ==================== FLÈCHE DE NAVIGATION ==================== */
/* Animation CSS pure pour la flèche indicatrice de défilement */
/* Créée avec des spans stylisés et des animations keyframes */

.arrow {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform: rotate(0deg);
    cursor: pointer;
}

.arrow span {
    display: block;
    width: 1.5vw;
    height: 1.5vw;
    border-bottom: 5px solid #333533;
    border-right: 5px solid #333533;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* ==================== SECTION LISTE DES CERTIFICATIONS ==================== */
/* Container principal avec le même style que les autres sections */

#certifications-list {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 6vw;
    gap: 2em;
    text-align: center;
    box-sizing: border-box;
    /* États d'animation */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    will-change: transform, opacity;
}

#certifications-list.visible {
    opacity: 1;
    transform: translateY(0);
}

.certifications-encadre {
    width: 100%;
    max-width: 1600px;
    margin: 3em auto;
    padding: 3em 3em;
    background: linear-gradient(135deg, #e0f2fe 0%, #fff89a46 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(33, 150, 243, 0.1);
}

/* ==================== CONTAINER CATÉGORIES CÔTE À CÔTE ==================== */
/* Layout en grille pour les catégories sur PC */

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3em;
    width: 100%;
    margin-top: 2em;
}

#certifications-list h2 {
    font-size: 1.5em;
    color: #000000;
    margin-top: 0;
    margin-bottom: 2em;
    user-select: none;
}

/* ==================== GRILLE DES CERTIFICATIONS ==================== */
/* Layout similaire aux cartes de projets */

.certifications-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5em;
    width: 100%;
    margin: 0;
    align-content: start;
}

/* ==================== CATÉGORIES DE CERTIFICATIONS ==================== */
/* Container pour chaque plateforme */

.certification-category {
    margin: 0;
    padding: 2.5em 2em;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    /* États d'animation */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s ease-out;
    will-change: transform, opacity;
}

.certification-category.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 2.5em;
    padding-bottom: 1.5em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.platform-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

.category-header h3 {
    color: #ffffff;
    font-size: 2em;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.certifications-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5em;
    width: 100%;
    margin: 0;
    align-content: start;
}

/* ==================== CARTES DE CERTIFICATIONS ==================== */
/* Style similaire aux cartes de projets */

.certification-card {
    background: #E8EDDF;
    color: #000000;
    border-radius: 18px;
    box-shadow: 0 4px 18px #0006;
    padding: 2.5em 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    cursor: default;
    text-align: center;
    transform: translateY(20px);
    will-change: transform, opacity;
}

.certification-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.certification-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ==================== ICÔNES DES CERTIFICATIONS ==================== */
/* Icônes stylées pour chaque certification */

.cert-icon {
    font-size: 3em;
    color: #F5CB5C;
    margin-bottom: 1em;
    padding: 0.5em;
    background: rgba(245, 203, 92, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.certification-card:hover .cert-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(245, 203, 92, 0.2);
}

/* ==================== CONTENU DES CARTES ==================== */
/* Texte et informations des certifications */

.certification-card h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
    color: #1e40af;
    font-weight: bold;
}

.certification-card h4 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
    color: #1e40af;
    font-weight: bold;
}

.cert-level {
    font-size: 1em;
    color: #F5CB5C;
    font-weight: 600;
    margin-bottom: 1em;
    padding: 0.3em 1em;
    background: rgba(245, 203, 92, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.cert-description {
    font-size: 1em;
    color: #333533;
    line-height: 1.5;
    margin-bottom: 1.5em;
    text-align: center;
}

/* ==================== DÉTAILS DES CERTIFICATIONS ==================== */
/* Informations supplémentaires */

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1.5em;
    width: 100%;
}

.cert-date,
.cert-score {
    font-size: 0.9em;
    color: #666b68;
    padding: 0.3em 0.8em;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    text-align: center;
}

/* ==================== BOUTONS DES CERTIFICATIONS ==================== */
/* Boutons avec le même style que ceux du portfolio principal */

.btn-voir-certif {
    user-select: none;
    padding: 1em 1.5em;
    font-size: 1em;
    background: rgba(40, 40, 40, 0.9);
    color: #F5CB5C;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.btn-voir-certif:hover {
    background: #F5CB5C;
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 203, 92, 0.4);
}

/* ==================== ACTIONS DE LA PAGE ==================== */
/* Boutons de navigation */

.certifications-actions {
    display: flex;
    gap: 2em;
    margin-top: 3em;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-retour,
.btn-contact {
    user-select: none;
    padding: 1.2em 2em;
    font-size: 1.1em;
    background: rgba(40, 40, 40, 0.9);
    color: #F5CB5C;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.btn-retour:hover,
.btn-contact:hover {
    background: #F5CB5C;
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 203, 92, 0.4);
}

/* ==================== STYLES RESPONSIVES ==================== */
/* Adaptations pour mobile cohérentes avec l'index */

@media (max-width: 57vh) {
    /* Section hero responsive */
    #certifications-hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2em;
        padding: 4em 2vw;
        min-height: 60vh;
    }

    .arrow {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        transform: rotate(0deg);
        cursor: pointer;
    }

    .arrow span {
        display: block;
        width: 3.5vw;
        height: 3.5vw;
        border-bottom: 2px solid #333533;
        border-right: 2px solid #333533;
        transform: rotate(45deg);
        margin: -5px;
        animation: animate 2s infinite;
    }

    .certifications-content {
        align-items: center;
        text-align: center;
    }

    #certifications-hero h1 {
        font-size: 2.5em;
        margin-top: 50px;
    }

    #certifications-hero p {
        font-size: 1em;
    }

    .certifications-image {
        width: 50vw;
        max-width: 300px;
        min-width: 150px;
    }

    /* Section liste responsive */
    #certifications-list h2 {
        font-size: 2.5em;
    }

    .certifications-encadre {
        margin-top: 2em;
        padding: 2em 1em;
        border-radius: 18px;
    }

    .certification-category {
        min-height: auto;
        margin: 3em 0;
        padding: 2em 1em;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1em;
        margin-bottom: 2em;
    }

    .platform-logo {
        width: 80px;
        height: 80px;
        font-size: 1.4em;
    }

    .category-header h3 {
        font-size: 1em;
    }

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

    .certification-card {
        padding: 3em 2em;
    }

    .certification-card h3,
    .certification-card h4 {
        font-size: 1.8em;
    }

    .cert-level {
        font-size: 1.2em;
        padding: 0.5em 1.5em;
    }

    .cert-description {
        font-size: 1.4em;
        line-height: 1.4;
    }

    .cert-date,
    .cert-score {
        font-size: 1.5em;
        padding: 0.5em 1em;
    }

    .btn-voir-certif {
        font-size: 2.2em;
        padding: 1.2em 2em;
    }

    .certifications-actions {
        flex-direction: column;
        gap: 1.5em;
        align-items: center;
    }

    .btn-retour,
    .btn-contact {
        font-size: 1em;
        padding: 1.7em;
        width: 100%;
        max-width: 400px;
    }

    .cert-icon {
        font-size: 4em;
        width: 120px;
        height: 120px;
    }
    
}

/* ==================== RÉDUCTION TAILLE MOBILE GLOBALE ==================== */
/* Styles pour réduire la taille du texte sur mobile */

@media (max-width: 57vh) {
    /* Ajustement du body pour topbar plus petite */
    body {
        padding-top: 50px !important;
    }
    
    /* Section hero plus compacte */
    #certifications-hero {
        padding: 1.5em 2vw !important;
        min-height: calc(60vh - 50px) !important;
    }
    
    #certifications-hero h1 {
        font-size: 2.2em !important;
        margin-bottom: 15px !important;
    }
    
    #certifications-hero p {
        font-size: 0.9em !important;
    }
    
    .certifications-image {
        width: 45vw !important;
        max-width: 250px !important;
        min-width: 120px !important;
    }
    
    /* Section liste plus compacte */
    #certifications-list h2 {
        font-size: 2em !important;
    }

    .certifications-encadre {
        margin-top: 1.5em !important;
        padding: 1.5em 0.8em !important;
    }

    .certification-category {
        margin: 2em 0 !important;
        padding: 1.5em 1em !important;
    }

    .category-header h3 {
        font-size: 0.9em !important;
    }

    .platform-logo {
        width: 60px !important;
        height: 60px !important;
        font-size: 1em !important;
    }

    .certification-card h3,
    .certification-card h4 {
        font-size: 1.4em !important;
    }

    .cert-level {
        font-size: 1em !important;
    }

    .cert-description {
        font-size: 1.1em !important;
    }

    .cert-date,
    .cert-score {
        font-size: 1.2em !important;
    }

    .btn-voir-certif {
        font-size: 1em !important;
    }

    .btn-retour,
    .btn-contact {
        font-size: 0.9em !important;
        padding: 1.2em !important;
        max-width: 300px !important;
    }

    .cert-icon {
        font-size: 3em !important;
        width: 100px !important;
        height: 100px !important;
    }
}

/* ==================== RESPONSIVE CATÉGORIES ==================== */
/* Adaptations pour mobile */

@media (max-width: 1200px) {
    .categories-container {
        grid-template-columns: 1fr;
        gap: 2em;
    }
}

@media (max-width: 57vh) {
    .categories-container {
        grid-template-columns: 1fr;
        gap: 2em;
        margin-top: 1em;
    }

    .certification-category {
        min-height: auto;
        margin: 0;
        padding: 1.5em 1em;
    }
}

/* ==================== DÉSACTIVATION ANIMATIONS ZOOM MOBILE ==================== */
/* Suppression des animations de zoom et transformations sur mobile */

@media (max-width: 57vh) {
    /* Cartes de certifications - pas de zoom */
    .certification-card {
        transform: none !important;
        transition: box-shadow 0.3s ease !important;
    }

    .certification-card:hover {
        transform: none !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    }

    /* Boutons certifications - pas de zoom */
    .btn-voir-certif {
        transform: none !important;
        transition: background 0.3s ease, color 0.3s ease !important;
    }

    .btn-voir-certif:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    /* Boutons navigation - pas de zoom */
    .btn-retour,
    .btn-contact {
        transform: none !important;
        transition: background 0.3s ease, color 0.3s ease !important;
    }

    .btn-retour:hover,
    .btn-contact:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    /* Icônes - pas de rotation ni zoom */
    .cert-icon {
        transition: background 0.3s ease !important;
    }

    .certification-card:hover .cert-icon {
        transform: none !important;
        background: rgba(245, 203, 92, 0.15) !important;
    }

    /* Catégories - animation d'apparition seulement */
    .certification-category.visible {
        transform: translateY(0) scale(1) !important;
    }

    /* Boutons spécifiques par plateforme - pas de zoom */
    .pix-btn:hover,
    .openclassrooms-btn:hover,
    .github-btn:hover,
    .coursera-btn:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
}
