/* === Style global avec image de fond === */
body {
    background-color: #f4fcf7;
    font-family: 'Segoe UI', sans-serif;
    color: #2c3e50;
    position: relative;
    z-index: 0;
}

/* === Image de fond en pseudo-élément === */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("/static/images/admin_bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.15;
}

/* === En-tête admin === */
#header {
    background-color: rgba(21, 70, 45, 0.9);
    color: #ffffff;
    border-bottom: 4px solid #38b000;
    text-align: center;
    padding: 20px 0;
}

/* === Titre principal === */
#header h1#site-name a {
    color: #e63946 !important;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
}

/* === Sous-titre personnalisé === */
#custom-index-title {
    color: #38b000;
    font-size: 16px;
    font-weight: 500;
    margin-top: 5px;
    text-align: center;
}

/* === Liens === */
a {
    color: #145c32;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #38b000;
}

/* === Boutons === */
.button, input[type="submit"], input[type="button"] {
    background-color: #6db57e !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button:hover, input[type="submit"]:hover {
    background-color: #145c32 !important;
}

/* === Tableaux === */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}
table th {
    background-color: #d8f3dc;
    color: #145c32;
    font-weight: bold;
    padding: 10px;
    text-align: left;
}
table td {
    padding: 10px;
    border-top: 1px solid #cce3d2;
}
tr:nth-child(even) {
    background-color: rgba(232, 255, 236, 0.85);
}

/* === Modules === */
.module {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

/* === Champs de formulaire === */
input[type="text"], input[type="email"], input[type="number"],
select, textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #a3d9a5;
    background-color: #ffffff;
    color: #2d2d2d;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: #38b000;
    outline: none;
}

/* === Titres internes === */
h1, h2, h3 {
    color: #145c32;
    margin-bottom: 15px;
}


