/* 🌑 Fond général */
body {
    background-color: #1e1e2f;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    margin: 40px;
}

/* 🧭 Titres */
h1, h2 {
    color: #ffffff;
    text-shadow: 1px 1px 2px #000;
    margin-bottom: 20px;
}

/* 📦 Conteneur des formulaires */
.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

/* 🧾 Cartes de formulaire */
.form-card {
    flex: 1 1 400px;
    background-color: #2c2c3c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.form-card:hover {
    transform: scale(1.01);
}

.form-card h2 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 15px;
}

/* 🧩 Champs de formulaire */
.form-card form label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
}

.form-card input[type="text"],
.form-card input[type="number"],
.form-card select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: none;
    border-radius: 6px;
    background-color: #3a3a4a;
    color: #e0e0e0;
}

.form-card input:focus,
.form-card select:focus {
    outline: none;
    box-shadow: 0 0 5px #00bcd4;
}

/* 🧵 Bouton */
.form-card button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #00bcd4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-card button:hover {
    background-color: #0097a7;
}

/* 📊 Tableau */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background-color: #2a2a3a;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background-color: #3c3c4c;
    color: #ffffff;
}

tr:hover {
    background-color: #383850;
}

/* 🗑️ Lien de suppression et filtres */
a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #80deea;
    text-decoration: underline;
}

/* ✅ Messages */
p {
    padding: 10px;
    border-radius: 6px;
    margin-top: 20px;
}

p[style*="green"] {
    background-color: #2e7d32;
    color: #c8e6c9;
}

p[style*="red"] {
    background-color: #c62828;
    color: #ffcdd2;
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }
}

