@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');


* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #212121;
    font-family: "Manrope", sans-serif;
    color: #eeeeee;
    height: 80vh;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
}

.nav, .pages {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a, .pages a {
    color: #eeeeee;
    text-decoration: none;
    font-weight: 600;
}

.nav a:hover, .pages a:hover {
    text-decoration: underline;
}

.title {
    margin-left: 100px;
    margin-top: 20px;
}

.animeGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 20px;
    padding: 0 100px;
}

.animeCard {
    border-radius: 8px;
    overflow: hidden;
    background: #3a3a3a;
    display: flex;
    flex-direction: column;
}

.animeCard:hover {
    box-shadow: 0 0 10px black;
    cursor: pointer;
}

.animeCardImage {
    width: 100%; height: 220px; object-fit: cover;
}

.animeCardText {
    padding: 15px;
    display: flex;
    flex-direction: column;flex-grow: 1;
}

.animeCardName {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.animeCardDesc {
    color: #ccc;
    font-size: 0.9rem;
    flex-grow: 1;
}

#animeOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#animeModal {
    background: #3a3a3a;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#animeModalClose {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #eeeeee;
}

#animeModalTitle {
    margin-top: 0;
}

#animeModalContent {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#animeModalImageBloc {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

#animeModalImage {
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

#animeModalTextBloc {
    flex: 2;
    min-width: 250px;
}

#animeModalAuteurDate {
    display: flex;
    justify-content: space-around;
}

#animeModalAuteurDate p {
    display: flex;
    flex-direction: column;
    align-items: center;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

#animeModalDesc {
    line-height: 1.5;
}

#animeModalActions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.animeCardBtn {
    padding: 10px 20px;
    border-radius: 10px;
    width: 100%;
    border: none;
}
.btnVu {
    background-color: #28a745;
}

.btnVu:hover {
    background-color: #135020;
    color: #eeeeee;
    cursor: pointer;
}

.btnAVoir {
    background-color: #17a2b8;
}

.btnAVoir:hover {
    background-color: #0e6877;
    color: #eeeeee;
    cursor: pointer;
}

.loginFormDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.loginForm {
    width: 25%;
    display: flex;
    flex-direction: column;
    max-height: 500px;
    gap: 25px;
    background-color: #3a3a3a;
    padding: 25px 50px;
    border-radius: 20px;

}

.loginFormLabelInput {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loginFormInput {
    padding: 5px 10px;
    border-radius: 10px;
}

.loginFormBtn {
    padding: 10px 20px;
    border-radius: 10px;
    width: 50%;
    border: none;
    margin: auto;
}

.loginFormBtn:hover {
    background-color: #cccccc;
    cursor: pointer;
}

/* --- Styles spécifiques pour le CRUD --- */

.crud-container {
    padding: 20px 100px;
}

.crud-title {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Formulaires du CRUD (qui s'adaptent à ton style .loginForm / .loginFormInput) */
.crud-form {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #3a3a3a;
    padding: 30px 50px;
    border-radius: 20px;
}

.crud-form label {
    font-weight: 600;
}

.crud-form input,
.crud-form textarea {
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    background-color: #212121;
    color: #eeeeee;
    font-family: "Manrope", sans-serif;
}

.crud-form textarea {
    resize: vertical;
    min-height: 100px;
}

.crud-submit-btn {
    width: 50%;
    margin: 0 auto;
    background-color: #007bff;
    color: #eeeeee;
    font-weight: 600;
}

.crud-submit-btn:hover {
    background-color: #0056b3;
    cursor: pointer;
}

/* Tableaux du CRUD */
.table-responsive {
    background: #3a3a3a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.crud-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.crud-table th,
.crud-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #212121;
}

.crud-table th {
    background-color: #2a2a2a;
    font-weight: 600;
}

.table-name {
    font-weight: bold;
}

.table-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.crud-table th,
.crud-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #212121;
    vertical-align: middle; /* Centre verticalement le contenu de toutes les cellules (images, textes, liens) */
}

.table-actions {
    /* On retire display: flex d'ici pour laisser le td se comporter normalement */
    white-space: nowrap; /* Empêche Show et Edit de passer à la ligne */
}

.table-actions a {
    margin-right: 15px; /* Espace propre entre Show et Edit sans flexbox */
}

.table-empty {
    text-align: center;
    color: #aaa;
}

/* Liens et boutons d'action */
.crud-link {
    color: #eeeeee;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.crud-link:hover {
    text-decoration: underline;
}

.action-link {
    text-decoration: none;
    font-weight: 600;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link.show {
    color: #17a2b8;
}

.action-link.edit {
    color: #ffc107;
}

.crud-create-btn {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background-color: #28a745;
    color: #eeeeee;
    max-width: 200px;
}

.crud-create-btn:hover {
    background-color: #135020;
    cursor: pointer;
}

.crud-actions-inline {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.delete-form {
    display: inline-block;
    margin: 0;
}

.delete-btn {
    font-size: 16px;
    background-color: #dc3545;
    color: #eeeeee;
    width: auto;
}

.delete-btn:hover {
    background-color: #a71d2a;
    cursor: pointer;
}

.show-table {
    max-width: 600px;
}
