/* Main Container */
.main {
    padding: 0 3%;
}

/* Section des projets */
.pro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.pro a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100px;
    transition: transform 0.3s ease;
    margin: 0 2% 2%;
}

.pro a:hover {
    transform: scale(1.05);
}

.pro img {
    margin-bottom: 10px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    background-color: #ffffff;
}

.pro img[alt="USSA"],
.pro img[alt="tamdem"],
.pro img[alt="NOQKTCAPITAL"] {
    border-radius: 100%;
}

/* Bouton d'ouverture de la popup */
#openBtn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    transition: transform 0.3s ease;
}

#openBtn:hover {
    transform: scale(1.05);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-content img {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

/* --------------------------- */
/* ------- POPUP STYLE ------- */
/* --------------------------- */

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 12% auto;
    padding: 30px 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #000;
}

/* Liens dans la popup */
.popup-split {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.popup-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 45%;
    transition: transform 0.2s ease;
}

.popup-link:hover .link-card {
    transform: scale(1.03);
    background-color: #f9f9f9;
}

.link-card {
    background-color: #f1f1f1;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: left;
}

.link-card h4 {
    margin: 0 0 10px;
    color: #d6249f;
}

.link-card p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 780px) {
    .pro {
        gap: 15px;
    }

    .pro a {
        width: 120px;
    }

    .pro img {
        width: 80px;
        height: 80px;
        margin-bottom: 8px;
    }
}

@media (max-width: 600px) {
    .popup-split {
        flex-direction: column;
        align-items: center;
    }

    .popup-link {
        max-width: 100%;
        text-align: center;
    }

    .link-card {
        text-align: center;
    }
}
