/* === RESET DE BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === TYPOGRAPHIE GLOBALE === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e6f2ff; /* Bleu clair */
    color: #333;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout le contenu */
    min-height: 100vh;
}

/* === CONTENEUR CENTRAL === */
.container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    text-align: center; /* Texte centré */
}

/* === TITRES === */
h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #1c2e4a;
    text-align: center;
}

/* === LIENS === */
a {
    color: #0056b3;
    text-decoration: none;
    transition: 0.2s;
}
a:hover {
    text-decoration: underline;
}

/* === CARTES / BLOCS === */
.card, .request {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 15px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    text-align: center;
}
.card:hover, .request:hover {
    transform: translateY(-5px);
}

/* === TABLEAUX === */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: center;
}
th, td {
    padding: 12px;
    border: 1px solid #ddd;
}
th {
    background: #007BFF;
    color: white;
    font-weight: 600;
}
tr:nth-child(even) {
    background: #f1f7ff;
}

/* === BOUTONS === */
button, .btn {
    display: inline-block;
    padding: 12px 18px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin: 5px;
}

button:hover, .btn:hover {
    opacity: 0.9;
}

/* Styles boutons principaux */
.btn-primary, button[name="action"][value="approve"] {
    background: #28a745;
    color: white;
}
.btn-danger, button[name="action"][value="reject"] {
    background: #dc3545;
    color: white;
}
.btn-secondary {
    background: #6c757d;
    color: white;
}

/* === STATUTS === */
.status-validé {
    background: #e6ffed;
    color: #2c662d;
}
.status-rejeté {
    background: #ffe6e6;
    color: #9c1c1c;
}
.status-en-attente {
    background: #fffbe6;
    color: #856404;
}

/* === FORMULAIRES === */
form {
    margin-top: 15px;
    text-align: center;
}
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 80%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #bbb;
}
input:focus, textarea:focus, select:focus {
    border-color: #007BFF;
    outline: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .card, .request {
        padding: 15px;
    }
    table, th, td {
        font-size: 14px;
    }
    button, .btn {
        width: 100%;
        margin: 8px 0;
    }
    input[type="text"], input[type="email"], input[type="password"], textarea, select {
        width: 100%;
    }
}
