@font-face {
    font-family: 'Borel' ;
    src: url('fonts/Borel-Regular.ttf')
}

@font-face {
    font-family: 'Roboto' ;
    src: url('fonts/Roboto-Regular.ttf')
}

@font-face {
    font-family: 'Helvetica';
    src: url('fonts/HelveticaNeue_thin.ttf');
}

* { cursor: url('3D/main.png') 16 16, auto; }

header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 10px;
    text-align: center;
    height: 10vh; 
    flex-shrink: 0; 
    font-size: 1.5rem; 

}

h1 {
     font-family: 'Borel';
    text-align: center;
    color: #F5F5F5; 
    
}
h2 {
     font-family: 'Borel';
    text-align: center;
    color: #ffff00; 
    font-size: 2rem; 
}

#logo-title {
    width: 300px;       
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

#logo-title:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 20px;
    padding: 0;
    line-height: 1;
}

header h1 a {
    display: inline-block;
}

body {
    
    font-family: 'Roboto', sans-serif; 
    font-size: 1.5rem;
    color: #F5F5F5;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #CBCDCB;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden; 
}


.masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    padding: 20px;
}

.masonry-item {
    background-color: transparent;
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s ease;
    overflow: hidden;
    
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.caption {
    text-align: center;
    margin-top: 10px;
}


.extra-content {
    display: none; 
    margin-top: 15px;
    width: 80%;
    max-width: 275px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff; 
    font-size: 1rem; 
    line-height: 1.4; 
}


.masonry-item.open .extra-content {
    display: block; 
}

.extra-images {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    margin-top: 10px;
}

.extra-images img {
    width: 100%; 
    max-width: 250px; 
    height: auto; 
    margin: 10px 0; 
    display: block;
    border-radius: 5px; 
}

.masonry-item.open .extra-content {
    display: block; 
}

/* gestion modèle 3D */
.extra-content model-viewer {
    height: 400px; 
    max-width: 400px; 
    margin: 20px auto; 
    display: block; 
    border-radius: 10px; 
}

.deployed-description {
    font-family: 'Helvetica';
    font-size: 1.2rem; 
    color: #ffff00; 
    text-shadow: 1px 1px 1px black;
    text-align: center; 
    line-height: 1.4; 
    width: 50%; 
}
.deployed-image {
    max-width: 50vw;
    max-height: 50vh;
    object-fit: contain;
}

footer {
    background-color: rgba(0, 0, 0, 0);
    font-family: Borel, sans-serif;
    color: #F5F5F5;
    text-align: center;
    padding-top: 10px;
    height: 10vh;
    flex-shrink: 0;
    font-size: 1rem;
}


@media (max-width: 768px) {
   
    header {
    flex-shrink: 0;
    width: 100%;
    text-align: center; 
    padding: 10px 0; 
    font-size: 1.5rem;
   
    }
    
    .masonry {
        grid-template-columns: 1fr; 
    }
    
    footer {
        font-size: 0.85rem; 
        text-align: center; 
        white-space: normal; 
        line-height: 1.4; 
        margin-top: auto ;
        width: 100%;
        flex-shrink: 0;
        padding: 0;
    }

}
