/* ==========================================================================
   RESET & BASES GLOBALES
   ========================================================================== */
*, *::after, *::before {
    box-sizing: border-box;
}

body {
    background-color: #fffaf5;
    font-family: 'rainyhearts', sans-serif;
    color: #333;
    margin: 0;
    padding: 0; 
    display: block;
    min-height: 100vh; 
}

h1 { 
    font-family: "Jacquard 12", system-ui, serif; 
    font-size: 3rem; 
    margin: 0; 
}

.main-wrapper {
    width: 95vw;
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px; 
    flex: 1; 
}

.titre-principal { 
    font-size: 5rem; 
    margin: 0 0 30px 0; 
    color: #1a1a1a; 
    text-align: center; 
}

/* Bouton Pixel Art réutilisable */
.btn-pixel {
    font-family: 'rainyhearts', sans-serif;
    font-size: 1.3rem;
    background-color: #fffaf5;
    color: #1a1a1a;
    border: 3px solid #1a1a1a;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    width: 40%;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 20px;
}

.btn-pixel:hover { 
    background-color: #1a1a1a; 
    color: #fffaf5; 
}

.btn-pixel:active {
    transform: translateY(2px);
}

/* ==========================================================================
   BARRE DE NAVIGATION
   ========================================================================== */
.nav-bar-tri, .navbar {
    background-color: #b8ba87; 
    padding: 8px 30px; 
    margin: 7px auto 20px auto;
    display: flex; 
    gap: 15px; 
    align-items: center; 
    list-style: none; 
    width: fit-content;
    box-shadow: 7px 0 0 0 #b8ba87, -7px 0 0 0 #b8ba87, 0 7px 0 0 #b8ba87, 0 -7px 0 0 #b8ba87;
}

.nav-bar-tri a, .navbar li a {
    font-family: 'rainyhearts', sans-serif; 
    text-decoration: none; 
    color: #212121; 
    font-size: 1.2rem; 
    display: inline-block; 
    cursor: pointer;
}

.navbar li a:hover {
    color: #fffaf5;
}

/* Si tu veux ajouter la même couleur blanche au lien UICN et son icône au survol */
.navbar li a.nav-link-uicn:hover .icon-externe {
    filter: brightness(0) invert(1); /* Rend l'icône parfaitement blanche */
}

/* --- SIGNALEMENT DE L'ITEM ACTIF (OPQUAST 157) SANS PHP --- */

/* Si on est sur l'accueil, on allume le lien accueil */
#page-accueil .navbar .nav-accueil,
/* Si on est sur la page oiseaux, on allume le lien oiseaux */
#page-oiseaux .navbar .nav-oiseaux,
/* Si on est sur la page ajouter, on allume le lien ajouter */
#page-ajouter .navbar .nav-ajouter,
/* Si on est sur la page à propos, on allume le lien à propos */
#page-apropos .navbar .nav-apropos {
    color: #0f0039;
    font-weight: bold;
}

#filter-famille { 
    font-family: 'rainyhearts', sans-serif; 
    font-size: 1.1rem; 
    background-color: #fffaf5; 
    border: 2px solid #212121; 
    padding: 2px 8px; 
    outline: none; 
    cursor: pointer; 
}

.separateur { 
    color: rgba(255, 255, 255, 0.5); 
}

/* ==========================================================================
   BARRE DE RECHERCHE
   ========================================================================== */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.search-container form {
    display: flex;
    width: 100%;
    background-color: #b8ba87;
    padding: 5px;
    box-shadow: 7px 0 0 0 #b8ba87, -7px 0 0 0 #b8ba87, 0 7px 0 0 #b8ba87, 0 -7px 0 0 #b8ba87;
}

.search-container input[type="text"] {
    flex-grow: 1;
    font-family: 'rainyhearts', sans-serif;
    font-size: 1.2rem;
    background-color: #fffaf5;
    border: 3px solid #1a1a1a;
    padding: 8px 12px;
    color: #333;
    outline: none;
    border-radius: 0;
}

.search-container button {
    font-family: 'rainyhearts', sans-serif;
    font-size: 1.2rem;
    background-color: #fffaf5;
    color: #1a1a1a;
    border: 3px solid #1a1a1a;
    border-left: none;
    padding: 0 20px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #1a1a1a;
    color: #fffaf5;
}

