@font-face {
    font-family: 'Quantico-Italic'; /* Nom personnalisé */
    src:    url('../fonts/Quantico/Quantico-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style:italic;
}

@font-face {
    font-family: 'Quantico-Regular'; /* Nom personnalisé */
    src:    url('../fonts/Quantico/Quantico-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Newsreader'; /* Nom personnalisé */
    src:    url('../fonts/Newsreader/Newsreader-VariableFont_opsz\,wght.ttf') format('truetype');
    font-weight: 400;
    font-style:normal;
}

body {
    font-family: 'Quantico-Regular', serif;
    margin: 0;
    padding: 0;
    background: #121212;
    color: white;
}
p {
    margin: 0;
}
a {
    color: #ffffff;
}

header{
    position: relative;
}

.header-container {
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: space-between; /* Place le select à gauche */
    position: relative;
}
.langues-select{
    background-color: #333;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    margin-left: 20px;
}
.auto-width-select {
    width: auto;
}



#gallery {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centre précisément le titre */
    white-space: nowrap; /* Empêche le titre de passer à la ligne */
}

.newsreader-text {
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.quantico-regular {
    font-family: "Quantico", serif;
    font-weight: 400;
    font-style: normal;
}

.quantico-regular-italic {
    font-family: "Quantico", serif;
    font-weight: 400;
    font-style: italic;
}


/* Style de l'écran de bienvenue */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 26px;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
}

#text-welcome h1 {
    font-size: clamp(1.5rem, 4vw, 3rem); /* Ajuste la taille du texte en fonction de l'écran */
    max-width: 90%; /* Empêche le titre de dépasser les bords */
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    margin: 0 auto;
    padding-top: 15px;
}



/* Bouton d'entrée */
#enter-site {
    margin-top: 60px;
    padding: 10px 20px;
    font-size: 18px;
    background: #ff6600;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

#enter-site:hover {
    background: #e65c00;
}

.langues-select2{
    background-color: #333;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    margin: 0 auto;
}
/* Animation de disparition */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Contenu principal */
.fade-in {
    display: block !important;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* Animation d’apparition */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.portrait {
    grid-row: span 2; /* Les photos en portrait prennent plus de hauteur */
}

.landscape {
    grid-column: span 2; /* Les photos en paysage prennent plus de largeur */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 200px;
}

.gallery img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    object-fit: cover;
    cursor: pointer; /* Ajouter un curseur pour montrer que l'image est cliquable */
}

.gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

#photos img {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#photos img.loaded {
    opacity: 1;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 10px;
}




/* Styles pour la modale */

.modal {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Supprime le scroll du body */
}

.modal-content {
    position: relative;
    background: rgb(17, 17, 17);
    padding: 20px;
    border-radius: 10px;
    max-width: 80vw; /* Largeur max */
    max-height: 90vh; /* Hauteur max */
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: flex-start; /* Aligner en haut */
    overflow: hidden; /* Pas de scroll global */
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh; /* L’image ne dépasse pas 50% de l’écran */
    object-fit: contain; /* Ajuste sans déformer */
}

.modal-text-container {
    max-height: 20vh; /* Espace restant pour le texte */
    overflow-y: auto; /* Scroller seulement le texte si trop long */
    padding: 10px;
    text-align: justify;
}



.close {
    color: #fafafa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px; /* Ajusté pour être bien collé au bord de la modale */
    cursor: pointer;
}




.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-text {
    font-family: 'Newsreader' , serif;
    margin-top: 20px;
    font-size: 18px;
    color: #e1e1e1;
}

.modal-title {
    text-align: center;
    color: #e1e1e1;
    font-size: 23px;
}

.modal-place {
    color: #939393;
    font-size: 13px;
}

.modal-species {
    color: #d2d2d2;
    font-size: 16px;
}

.modal-species-latin {
    font-family: "Quantico-Italic";
    color: #d2d2d2;
    font-size: 16px;
}


/* Bouton filtre */
.filter-btn {
    position: fixed;
    left: 20px;
    top: 33vh;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
}

/* Styles pour la liste déroulante de filtres */
.filter-options {
    position: fixed;
    left: 20px;
    margin-right: 20px;
    top: 40vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none; /* Masquer par défaut */
    z-index: 99;
}

.filter-options select {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    width: 150px;
    margin-top: 5px;
}
.filter-options button {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    width: 100px;
    margin-top: 5px;
}