/* Style général pour tous les écrans */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #00cfe6;
}

#birds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    padding: 20px;
}

/* ==== ZONE PRINCIPALE ==== */
.section-part {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 60px;
    padding: 20px;
    justify-items: center;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.item {
    text-align: center;
}

/* ==== ICONES DESKTOP + GLOW ==== */
.item img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px #00cfe6);
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Hover : scale + glow */
.item img.hovered {
    transform: scale(1.15);
    filter: drop-shadow(0 0 24px #00cfe6) drop-shadow(0 0 12px #00cfe6);
}

/* ==== TITRES DES ICONES ==== */
.section-part p {
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 0 8px #00cfe6, 0 0 4px #00cfe6;
    transition: text-shadow 0.25s ease;
}

.section-part .item:hover p {
    text-shadow: 0 0 16px #00cfe6, 0 0 8px #00cfe6;
}

/* ==== TEXTE EN BAS DE PAGE ==== */
.footer-text {
    text-align: center;
    color: #00cfe6;
    margin-top: 20px;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 4px #00cfe6, 0 0 2px #00cfe6;
    animation: glowPulseFooter 2.5s infinite alternate;
}

/* Glow pulsant texte bas */
@keyframes glowPulseFooter {
    0% {
        text-shadow: 0 0 4px #00cfe6, 0 0 2px #00cfe6;
    }
    50% {
        text-shadow: 0 0 8px #00cfe6, 0 0 4px #00cfe6;
    }
    100% {
        text-shadow: 0 0 4px #00cfe6, 0 0 2px #00cfe6;
    }
}

/* ==== MOBILE — INCHANGÉ ==== */
@media only screen and (max-width: 768px) {

    body {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .section-part {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        padding: 20px;
        gap: 10px;
        box-sizing: border-box;
        transform: translateY(-45px); /* Ajoute juste cette ligne */
    }

    .section-part .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .section-part img {
        width: 73px;
        height: 73px;
        object-fit: contain;
        filter: none;
        transform: none;
        animation: none;
    }

    .section-part p {
        font-size: 15px;
        color: #00cfe6;
        text-align: center;
        margin: 10px 0;
        text-shadow: none;
    }

    .footer-text {
        display: none;
    }
}
