/* ========== Importation des polices ========== */
@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: 'Geist' ;
    src: url('fonts/Geist-VariableFont_wght.ttf')
    
}

/* ========== Global Styles ========== */
header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 20px;
    text-align: center;
    height: 10vh; /* Hauteur proportionnelle à la taille de la fenêtre */
    flex-shrink: 0; /* Empêche le rétrécissement */
    font-size: 1.5rem; /* Taille des titres, modifiez cette valeur si nécessaire */

}

h1 {
     font-family: 'Borel';
    src: url('./fonts/Borel-Regular.ttf') format('truetype');
    text-align: center;
    color: #F5F5F5; /* Couleur des titres */
    
}
h2 {
     font-family: 'Borel';
    src: url('./fonts/Borel-Regular.ttf') format('truetype');
    text-align: center;
    color: #ffff00; /* Couleur des titres */
    font-size: 2rem; /* Taille des titres, modifiez cette valeur si nécessaire */
}

body {
    
    font-family: 'Roboto', sans-serif; /* Nom que vous donnez à la police */
    src: url('./fonts/Roboto-Regular.ttf') format('truetype'); /* Format plus ancien */
    font-size: 1.5rem;
    color: #425EA2;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #6495ED;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden; /* Empêche le débordement horizontal */
    cursor: url('3D/curseur.png'), auto;
}

/* ========== Masonry Layout avec Grid en 3 colonnes fixes sur grand écran ========== */
.masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Trois colonnes fixes */
    gap: 30px; /* Espace entre les éléments */
    padding: 20px;
}

.masonry-item {
    background-color: transparent; /* Suppression du fond blanc */
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden; /* Évite les débordements */
}

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

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


/* Texte du dépliant */
.extra-content {
    display: none; /* Caché par défaut */
    margin-top: 15px;
    width: 80%;
    max-width: 275px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff; /* Texte blanc */
    font-size: 1rem; /* Réduisez la taille du texte blanc ici */
    line-height: 1.4; /* Ajuste l'interligne pour garder la lisibilité */
}


.masonry-item.open .extra-content {
    display: block; /* Affiche le contenu quand l'élément est ouvert */
}

.extra-images {
    display: flex;
    flex-direction: column; /* Affichage en colonne */
    align-items: center; /* Centre les images dans la colonne */
    justify-content: center;
    margin-top: 10px;
}

.extra-images img {
    width: 100%; /* Changez cette valeur pour ajuster la taille des images */
    max-width: 250px; /* Largeur maximale pour les images */
    height: auto; /* Assurez-vous que la hauteur s'ajuste automatiquement */
    margin: 10px 0; /* Espace vertical entre les images */
    display: block;
    border-radius: 5px; /* Bord arrondi pour les images */
}

.masonry-item.open .extra-content {
    display: block; /* Affiche le contenu */
}

/* Styles pour le modèle 3D */
.extra-content model-viewer {
    height: 400px; /* Hauteur fixe */
    max-width: 400px; /* Largeur maximale pour les images */
    margin: 20px auto; /* Centre horizontalement */
    display: block; /* Centrage dans le flux */
    border-radius: 10px; /* Coins arrondis si souhaité */
}

.deployed-description {
    font-family: 'Geist', sans-serif; /* Change la police */
    font-size: 1.2rem; /* Ajuste la taille du texte */
    color: #ffff00; /* Change la couleur du texte */
    text-shadow: 1px 1px 1px black;
    text-align: center; /* Centre le texte */
    line-height: 1.4; /* Améliore la lisibilité */
    width: 50%; /* Limite la largeur */
}
.deployed-image {
    max-width: 50vw;
    max-height: 50vh;
    object-fit: contain;
}

.deploy-overlay {
    cursor: pointer;
}

/* ========== Footer ========== */
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;
}

/* ========== Responsive pour Mobile ========== */
@media (max-width: 768px) {
   
    header {
    flex-shrink: 0;
    width: 100%;
    text-align: center; /* Centre le texte */
    padding: 10px 0; /* Ajoute un peu d'espace */
    font-size: 1.5rem;
   
    }
    
    .masonry {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    
    footer {
        font-size: 0.85rem; /* Réduit la taille du texte */
        text-align: center; /* Centrage du texte */
        white-space: normal; /* Permet le passage à la ligne */
        line-height: 1.4; /* Espacement entre les lignes */
        margin-top: auto ;
        width: 100%;
        flex-shrink: 0;
        padding: 0;
    }

}
