*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: rgb(175 171 177);
    height: 100vh;
}

h1 {
     margin-left: 50px;
     margin-top: 50px;
     text-align: center;
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;

}

h2 {
    color: black;
    text-align: center;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 5px;
}

/* Positionner la constellation au-dessus de l'image */
.item h3 {
    position: absolute;
    top: 5px; /* Ajuste la position en haut */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: center;
    z-index: 3; /* Toujours au-dessus de l’image */
}

/* Empêcher l’image de recouvrir le texte au survol */
.item:hover img {
    transform: scale(1.3);
    z-index: 1; /* L’image ne doit pas passer devant */
}


.white {
  color: burlywood;

}
.red {
  color: red;

}

.green {
  color: green;
  }

.blue {
  color: blue;
}

.orange {
  color: orange;
}

.saisonCoul {
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;
    margin-left: 50px;
    margin-top: 5px;
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 10px auto 0;
    justify-content: center; /* Alignement horizontal au centre */
}

.item {
    position: relative;
    width: 125px; /* Largeur fixe pour chaque élément */
    height: 125px; /* Hauteur fixe pour chaque élément */
    margin: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Ajout de couleurs de fond pour chaque saison */

.item[data-saison="circumpolaires"] {
    border: 5px solid burlywood; /* burlywood pour le circumpolaires */
}

.item[data-saison="printemps"] {
    border: 5px solid green; /* Vert pour le printemps */
}

.item[data-saison="été"] {
    border: 5px solid red; /* Orange pour l'été */
}

.item[data-saison="automne"] {
    border: 5px solid orange; /* Rouge pour l'automne */
}

.item[data-saison="hiver"] {
    border: 5px solid blue; /* Bleu pour l'hiver */
}

.info-text {
        margin-top: 10px;
        margin-left: 20px;
}


.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.item:hover .overlay {
    opacity: 1;
    z-index: 2; /* Met en avant l'overlay au survol */
}


.item:hover img {
    transform: scale(1.3);
    z-index: 9;
}

.full-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.full-image-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transform: none !important;
}

.image-info {
    color: white;
    text-align: center;
}
