/* Importation de la police (ex: Roboto, tu peux la changer) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* Styles globaux */
body {
    font-family: 'Roboto', sans-serif;
    background: url('../img/back.webp') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.container {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    max-width: 1400px;
    margin: auto;
    height: 50%;
    margin-top: 7%;
}

/* Tableaux */
.table {
    background-color: #ffffff;
    color: #000000;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: #fae800;
    color: #000000;
}

.table tbody tr:hover {
    background-color: rgba(250, 232, 0, 0.3);
}

/* Tableaux responsifs */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Boutons */
.btn-primary {
    background-color: #fae800;
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    transition: 0.3s ease-in-out;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #ffd700;
    color: #000000;
}

.btn-secondary {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 4px 20px;
    font-size: 15px;
    transition: 0.3s ease-in-out;
    border-radius: 5px;
}

.btn-secondary:hover {
    background-color: #333333;
}

/* Champs de formulaire */
input, select, textarea {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #fae800;
    padding: 8px;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 5px #fae800;
}

/* Alertes */
.alert-danger {
    background-color: #ff4d4d;
    color: #ffffff;
    border: none;
    padding: 10px;
    text-align: center;
}

.alert-success {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px;
    text-align: center;
}

/* Pied de page */
.footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.form {
text-align: center;
}

.form-label {
    margin-bottom: .5rem;
    text-align: center;
}

.back-button-container {
    text-align: center;
    margin-top: 20px;
}

.back-button {
    display: block;
    width: 60%;
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    margin-top: 20px;
    margin: auto;
}

.back-button:hover {
    background: #218838;
}

/* Style des tables et formulaires pour une meilleure responsivité */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    .table tr {
        margin-bottom: 10px;
    }
    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}