/* ========================================
   STYLES SPÉCIFIQUES À LA PAGE D'ACCUEIL
   ======================================== */

/* Liste libre sans encadré sur l'index */
#ma-liste {
    list-style: none;
    font-size: 1.8rem;
    color: rgb(143, 12, 99);
    font-weight: bold;
    margin: 50px auto;
    max-width: 600px;
    padding: 0;
}

#ma-liste li {
    margin: 25px 0;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    border-left: 8px solid rgb(192, 204, 28);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#ma-liste li:hover {
    transform: translateX(15px) scale(1.02);
    background: rgba(192, 204, 28, 0.2);
    box-shadow: 0 8px 25px rgba(143, 12, 99, 0.2);
    border-left-width: 12px;
}

/* Certifications libres sur l'index */
.certifications {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px auto;
    flex-wrap: wrap;
    max-width: 1200px;
}

.certification-item {
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certification-img {
    height: 400px;
    width: auto;
    transition: all 0.3s ease;
    border-radius: 20px;
    cursor: pointer;
    display: block;
}

.certification-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(143, 12, 99, 0.3);
}

.certification-item:hover .certification-img {
    filter: brightness(1.1) saturate(1.2);
}

/* Logos libres sur l'index */
.logos {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 60px auto;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
}

.logos img {
    height: 280px;
    width: auto;
    max-width: 400px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.logos img:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 20px 40px rgba(143, 12, 99, 0.4);
}

/* Forcer l'affichage des logos */
#old_logo, #logo_ffe, #asso_mlr {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive spécifique à l'index */
@media screen and (max-width: 768px) {
    #ma-liste {
        font-size: 1.4rem;
        margin: 40px 20px;
    }

    #ma-liste li {
        margin: 15px 0;
        padding: 15px 20px;
    }

    .certifications, .logos {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin: 40px 20px;
    }

    .certification-img {
        height: 280px;
        max-width: 350px;
    }

    .logos img {
        height: 200px;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    #ma-liste {
        font-size: 1.2rem;
        margin: 30px 15px;
    }

    #ma-liste li {
        padding: 12px 15px;
        border-left-width: 5px;
    }

    .certification-img {
        height: 240px;
        max-width: 300px;
    }

    .logos img {
        height: 180px;
        max-width: 260px;
    }
}