/**
 * Feuille de style unifiée (THÈME TERMINAL)
 * Version 1.1 - Nov 2025
 */

/* --- 0. STYLE DE BASE TERMINAL --- */
body {
    background-color: #1E1E1E;
    color: #E0E0E0;
    font-family: 'Courier New', Courier, monospace;
}

/* --- 1. BARRE DE RECHERCHE --- */

/* Conteneur principal du formulaire de recherche */
#rdp-search-container {
    max-width: 600px;
    margin: 30px 0;
}

/* Le champ de saisie de la recherche (MODIFIÉ) */
#rdp-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #3DCC91; /* Bordure verte */
    border-radius: 5px; /* Bords arrondis 5px */
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    
    background-color: transparent; /* Fond transparent */
    color: #E0E0E0; /* Texte blanc cassé */
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 0 5px rgba(61, 204, 145, 0.5); /* Lueur verte */
}

/* Placeholder text */
#rdp-search-input::placeholder {
    color: #777;
    opacity: 1;
}

/* Effet visuel quand on clique sur la barre de recherche (MODIFIÉ) */
#rdp-search-input:focus {
    outline: none;
    border-color: #3DCC91;
    box-shadow: 0 0 10px rgba(61, 204, 145, 0.8); /* Lueur plus intense */
}


/* --- 2. RÉSULTATS DE LA RECHERCHE EN DIRECT (sous la barre) --- */

/* Conteneur pour les résultats en direct (MODIFIÉ) */
#rdp-search-results {
    margin-top: 10px;
    border: 1px solid #3DCC91; /* Bordure accentuée */
    border-radius: 5px;
    background-color: #2a2a2a; /* Fond légèrement plus clair que le body */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Cache le conteneur des résultats s'il est vide au chargement */
#rdp-search-results:empty {
    display: none !important;
}

/* Style pour la liste des résultats en direct */
#rdp-search-results ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

/* Ligne de résultat (MODIFIÉ) */
#rdp-search-results li {
    padding: 0;
    border-bottom: 1px solid #333; /* Séparateur sombre */
}

#rdp-search-results li:last-child {
    border-bottom: none;
}

/* Lien de résultat (MODIFIÉ) */
#rdp-search-results li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none; /* Pas de soulignement par défaut */
    color: #E0E0E0; /* Texte blanc cassé */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Effet au survol (MODIFIÉ) */
#rdp-search-results li a:hover {
    background-color: rgba(61, 204, 145, 0.1); /* Fond vert subtil */
    color: #3DCC91; /* Texte devient vert */
}

/* --- 3. TABLEAU PRINCIPAL DES DÉCRETS --- */

/* Conteneur du tableau (MODIFIÉ) */
.neovalen-decrets-container {
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace; /* Police Terminal */
    background-color: #2a2a2a; /* Fond plus clair */
    border: 1px solid #555; /* Bordure grise foncée */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tableau lui-même */
.neovalen-decrets-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9em;
}

/* En-têtes de colonne (MODIFIÉ) */
.neovalen-decrets-table th {
    background-color: rgba(61, 204, 145, 0.1); /* Fond vert subtil */
    color: #3DCC91; /* Texte vert accent */
    padding: 12px 15px;
    border-bottom: 2px solid #3DCC91; /* Ligne verte */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cellules de données (MODIFIÉ) */
.neovalen-decrets-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #333; /* Séparateur sombre */
    color: #E0E0E0; /* Texte blanc cassé */
}

/* Effet de survol sur les lignes (MODIFIÉ) */
.neovalen-decrets-table tbody tr:hover {
    background-color: #333; /* Fond de survol sombre */
}

/* Liens cliquables en vert dans le tableau (MODIFIÉ) */
.neovalen-decrets-table td a {
    color: #3DCC91; /* Vert terminal */
    text-decoration: underline;
    font-weight: 600;
    border-bottom: none; /* On enlève la bordure pointillée */
    transition: color 0.2s ease;
}

.neovalen-decrets-table td a:hover {
    color: #8affc9; /* Vert plus clair au survol */
    text-decoration: none;
}

/* Message "Aucun décret trouvé" (MODIFIÉ - AVERTISSEMENT) */
.no-decrets-found {
    text-align: center;
    font-style: italic;
    color: #FFBF00; /* Ambre (Avertissement) */
    padding: 20px;
    border: 1px dashed #FFBF00; /* Bordure ambre */
    margin: 20px 0;
    background-color: rgba(255, 191, 0, 0.1); /* Fond ambre subtil */
}


/* --- 4. PAGINATION (style bouton terminal) --- */

.pagination-container {
    margin: 30px 0;
    text-align: center;
}
.pagination-container .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #555; /* Bordure neutre */
    color: #E0E0E0; /* Texte blanc cassé */
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace; /* Police Terminal */
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    background-color: transparent;
}
.pagination-container .page-numbers:hover {
    background-color: rgba(61, 204, 145, 0.1); /* Fond vert subtil */
    color: #3DCC91; /* Texte vert */
    border-color: #3DCC91; /* Bordure verte */
}

/* Bouton :click (simulé avec :active) */
.pagination-container .page-numbers:active {
     background-color: #111111; /* Noir (comme demandé) */
     color: #FFFFFF;
     border-color: #111111;
}

.pagination-container .page-numbers.current {
    background-color: #3DCC91; /* Vert accent (primaire) */
    color: #1E1E1E; /* Texte anthracite (pour contraste) */
    border-color: #3DCC91;
}

/* Survol du bouton "current" (primaire) */
.pagination-container .page-numbers.current:hover {
    background-color: #8affc9; /* Vert plus clair */
    border-color: #8affc9;
    color: #1E1E1E;
}