/* ==========================================================================
   FICHE OISEAU DÉTAILLÉE
   ========================================================================== */
.fiche-container {
    width: 100%;
    max-width: 650px; 
    background: #fffaf5;
    padding: 30px;
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fiche-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
}

.fiche-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sci-name { 
    font-family: 'Jacquard 12', serif; 
    font-size: 1.4rem; 
    color: #5d634f; 
    margin: 0 0 5px 0;
}

.pixel-art-main {
    background-color: #b8ba87;
    box-shadow: 7px 0 0 0 #b8ba87, -7px 0 0 0 #b8ba87, 0 7px 0 0 #b8ba87, 0 -7px 0 0 #b8ba87;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
    margin: 7px; 
}

.pixel-art-main img { 
    width: 80%; 
    height: auto;
    image-rendering: pixelated; /* IA */
}

.description-box {
    background-color: #b8ba87;
    box-shadow: 7px 0 0 0 #b8ba87, -7px 0 0 0 #b8ba87, 0 7px 0 0 #b8ba87, 0 -7px 0 0 #b8ba87;
    padding: 12px;
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 10px;
    margin-left: 7px; 
    margin-right: 7px;
    color: #212121;
}

.audio-player {
    background: #b8ba87;
    margin: 15px 0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.no-audio {
    font-style: italic;
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
}

.uicn-and-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.danger-level {
    border: 3px solid #b8ba87;
    padding: 10px 20px;
    text-align: center;
    width: fit-content;
    margin: 10px auto; 
}

.uicn-code {
    font-family: 'rainyhearts', sans-serif;
    font-size: 3rem;
    display: block;
    line-height: 1;
}

.famille-grid, .habitat-grid {
    display: flex;
    gap: 10px;
    background: #E0E5EF;
    padding: 10px;
    width: 100%;
    justify-content: center; 
    flex-wrap: wrap;
}

.mini-sprite img, .sprite-small {
    width: 70px;
    height: auto;
    image-rendering: pixelated; /* IA */
    transition: transform 0.2s ease-in-out; /* IA */
    display: block; 
}

.mini-sprite a:hover img, 
.sprite-small:hover {
    transform: scale(1.25); 
    position: relative;
    z-index: 10; 
}

/* ==========================================================================
   PETITE CARTE (STATIQUE / FICHE)
   ========================================================================== */
  /* cette partie a été réaliser avec l'IA */
.map-container-small { 
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0 auto;
    border: 3px solid #b8ba87;
}

.base-map-small {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.5; 
}

.continent-active {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.continent-title {
    text-align: center;
    font-family: 'Jacquard 12', serif;
    font-size: 2rem;
    margin-top: 5px;
    color: #4a4d3a;
}

.world-map {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.world-map img {
    width: 100%;
    filter: sepia(0.3);
}

.continent-label {
    font-family: 'Jacquard 12', serif;
    font-size: 2.5rem;
}