/* ========== 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: #F5F5F5; /* 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;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.gallery {
    flex-grow: 1; /* Allow gallery to take up remaining space */
    width: 100%;
}
/* ========== 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 */
}

.download-button {
    display: inline-block;
    background-color: #425EA2;
    color: #F5F5F5;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #6495ED;
}

/* 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é */
}


/* ========== Footer ========== */
footer {
    margin-top: 0; /* Pousse le footer en bas */
    flex-shrink: 0; /* Prevent footer from shrinking */
    font-family: 'Borel', sans-serif;
    color: #F5F5F5;
    text-align: center;
    padding-top: 10px;
    height: 10vh;
    font-size: 1rem;
    width: 100%;
}

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

}
