/* ============================================
   Lighttpd Directory Listing - Dark Theme
   Bleu nuit profond, cyan, blanc/gris
   ============================================ */

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

/* En-tête personnalisé */
body::before {
    content: "📁 OMEGA Serveur";
    display: block;
    background: #0f1320;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: 500;
    color: #00d4ff;
    margin-bottom: 20px;
    border-bottom: 2px solid #2a2e3a;
    font-family: monospace;
}

body {
    background: #0a0e1a;  /* Bleu nuit très profond */
    color: #e0e0e0;       /* Blanc cassé/gris clair */
    font-family:   font-family: 'Segoe UI', 'Ubuntu', 'Roboto', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Emoji', 'EmojiOne Color', 'Twemoji Mozilla', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 2rem;
    margin: 0;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #0f1320;  /* Légèrement plus clair que le fond */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* En-tête personnalisé (si HEADER.txt est utilisé) */
.custom-header {
    background: linear-gradient(135deg, #0a0f1a 0%, #0c1120 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #2a2e3a;
    margin-bottom: 0;
}

/* Titre principal */
h1 {
    color: #00d4ff;       /* Cyan électrique */
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
    padding: 1.5rem 2rem;
    background: #0f1320;
    border-bottom: 2px solid #00d4ff30;
    display: flex;
    align-items: center;
    gap: 12px;
}

h1::before {
    content: "📁";
    font-size: 1.8rem;
}

/* Tableau */
table {
    width: 100%;
    border-collapse: collapse;
    background: #0f1320;
}

/* En-têtes de colonnes */
th {
    text-align: left;
    padding: 12px 16px;
    background: #1a1f2e;
    color: #a0b0c0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #2a2e3a;
}

/* Lignes du tableau */
tr {
    border-bottom: 1px solid #1e2332;
    transition: background 0.2s ease;
}

tr:hover {
    background: #151b2a;
}

/* Cellules */
td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* Liens */
a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Dossiers */
tr td:first-child a[href$="/"] {
    color: #00d4ff;       /* Cyan pour les dossiers */
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

tr td:first-child a[href$="/"]::before {
    content: "📁";
    font-size: 1.1rem;
}

/* Fichiers */
tr td:first-child a:not([href$="/"]) {
    color: #ffffff;       /* Blanc pour les fichiers */
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Icônes par type de fichier */
tr td:first-child a[href$=".txt"]::before { content: "📄"; }
tr td:first-child a[href$=".pdf"]::before { content: "📑"; }
tr td:first-child a[href$=".jpg"]::before { content: "🖼️"; }
tr td:first-child a[href$=".jpeg"]::before { content: "🖼️"; }
tr td:first-child a[href$=".png"]::before { content: "🖼️"; }
tr td:first-child a[href$=".gif"]::before { content: "🖼️"; }
tr td:first-child a[href$=".webp"]::before { content: "🖼️"; }
tr td:first-child a[href$=".mp3"]::before,
tr td:first-child a[href$=".wav"]::before,
tr td:first-child a[href$=".flac"]::before { content: "🎵"; }
tr td:first-child a[href$=".mp4"]::before,
tr td:first-child a[href$=".webm"]::before,
tr td:first-child a[href$=".mkv"]::before { content: "🎬"; }
tr td:first-child a[href$=".zip"]::before { content: "📦"; }
tr td:first-child a[href$=".tar"]::before { content: "📦"; }
tr td:first-child a[href$=".gz"]::before { content: "📦"; }
tr td:first-child a[href$=".7z"]::before { content: "📦"; }
tr td:first-child a[href$=".html"]::before,
tr td:first-child a[href$=".htm"]::before { content: "🌐"; }
tr td:first-child a[href$=".css"]::before { content: "🎨"; }
tr td:first-child a[href$=".js"]::before { content: "⚡"; }
tr td:first-child a[href$=".py"]::before { content: "🐍"; }
tr td:first-child a[href$=".sh"]::before { content: "🐚"; }
tr td:first-child a[href$=".md"]::before { content: "📝"; }
tr td:first-child a[href$=".json"]::before { content: "🔧"; }
tr td:first-child a[href$=".conf"]::before,
tr td:first-child a[href$=".cfg"]::before { content: "⚙️"; }

/* Hover sur les liens */
a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Taille et date */
td:nth-child(2), td:nth-child(3) {
    color: #9098a8;
    font-size: 0.85rem;
    font-family: monospace;
}

/* Pied de page (README.txt) */
.custom-footer {
    background: #0f1320;
    padding: 1.5rem 2rem;
    border-top: 1px solid #2a2e3a;
    margin-top: 0;
    color: #a0b0c0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.3rem;
        padding: 1rem;
    }
    
    td, th {
        padding: 8px 12px;
    }
    
    td:nth-child(2), td:nth-child(3) {
        font-size: 0.75rem;
    }
}

/* Barre de séparation et motifs */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, #2a2e3a, #00d4ff80, #2a2e3a);
    margin: 16px 0;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: #2a2e3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d4ff80;
}

/* Masquer la signature lighttpd */
address {
    display: none;
}

/* Pied de page personnalisé */
body::after {
    content: "📁 Powered by Me on Omega-linux";
    display: block;
    background: #0f1320;
    padding: 15px;
    text-align: center;
    color: #9098a5;
    font-size: 0.8rem;
    border-top: 1px solid #2a2e3a;
    margin-top: 20px;
}
/* Force l'affichage des emojis sur tous les navigateurs */
* {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Noto Emoji', 'EmojiOne Color', 'Twemoji Mozilla', monospace;
}

/* Garantit que les dossiers et fichiers gardent leur couleur */
tr td:first-child a[href$="/"] {
    color: #00d4ff !important;
}

tr td:first-child a:not([href$="/"]) {
    color: #ffffff !important;
}

