
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

html {
    margin: 0;
    padding: 0;
}

body {
    text-align: center;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
    margin: 0;
    padding-top: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 {
    color: #0C4A6E;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#links {
    color: #0284C7;
    font-size: 17px;
    text-align: center;
    margin: 0 15px;
    font-weight: 500;
}

#coming {
    color: #4A4A4A;
}

ul {
    list-style-position: outside;
    margin: 0 auto;
    width: fit-content;
}

#links a {
    margin: 0 16px;
    text-decoration: none;
    color: #0C4A6E;
    transition: color 0.2s;
    font-weight: 500;
}

#links a:hover {
    color: #0284C7;
}

#name {
    line-height: 0.3;
    margin: 0;
    padding: 15px 0;
    color: #B91C1C;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

#description {
    margin-top: 0.7em;
    margin-bottom: 1em;
    color: #0E7490;
    font-weight: 500;
    font-size: 1.1rem;
}

#projects {
    line-height: 1.5;
    margin-top: 2em;
    margin-bottom: 2em;
    color: #0C4A6E;
    font-weight: 700;
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

#bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
    z-index: 10;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

#header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
    z-index: 10;
    padding: 20px 0;
    margin: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 2rem;
    align-items: stretch;
    justify-items: center;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    #name {
        font-size: 2rem;
    }
    
    #projects {
        font-size: 1.5rem;
    }
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 280px;
    width: 100%;
    max-width: 350px;
        background: #FFFFFF;
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 1px solid rgba(186, 230, 253, 0.5);
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.3);
    border-color: rgba(56, 189, 248, 0.8);
}

.project img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 1rem;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.project:hover img {
    transform: scale(1.05);
}

.project h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0C4A6E;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Style de la modale */
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.modal {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
    padding: 32px 24px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    min-width: 320px;
    border: 1px solid rgba(186, 230, 253, 0.5);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    color: #b32121;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #772626;
}

/* Ajustements spécifiques par projet */
.devboard {
    margin-top: 40px;
}

.display {
    margin-top: 40px;
    margin-bottom: px;
}

.space-collector {
    margin-top: 5px;
}

.robotic-arm {
    margin-top: 40px;
}

.hackpad {
    margin-top: 40px;
}

.cubesat {
    margin-top: 35px;
}

.raspapi {
    margin-top: 45px;
}