/* --- Global Styles --- */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #2d2d2d;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a1f44, #08192d); /* Gradient bleu */
    color: #ffffff;
    height: 100vh; /* Prend toute la hauteur */
    display: flex;
    justify-content: center; /* Centré horizontalement */
    align-items: flex-end; /* Aligne le contenu vers le bas */
    overflow: hidden; /* Empêche le défilement */
}

/* --- Headings --- */
h2, h1 {
    color: #70d3f2;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Formulaire de création --- */
form {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

form label {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

form input[type="text"],
form textarea,
form input[type="file"] {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form textarea:focus,
form input[type="file"]:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: #00d4ff;
    outline: none;
}

/* --- Button Submit --- */
form button {
    background-color: #00d4ff;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    background-color: #0088cc;
}

/* --- Liste des créations --- */
.creations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.creation-item {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 15px;
    width: 260px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.creation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.creation-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.creation-item h3 {
    font-size: 1.2rem;
    color: #fff;
}

.creation-item p {
    font-size: 0.9rem;
    color: #ccc;
}

/* --- Button Styles for Creation Item --- */
.view-creation-button,
.edit-creation-button,
.delete-creation-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-creation-button {
    background-color: #007bff;
    color: white;
}

.view-creation-button:hover {
    background-color: #0056b3;
}

.edit-creation-button {
    background-color: #28a745;
    color: white;
}

.edit-creation-button:hover {
    background-color: #218838;
}

.delete-creation-button {
    background-color: #dc3545;
    color: white;
}

.delete-creation-button:hover {
    background-color: #c82333;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .creation-item {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .creation-item {
        width: 100%;
    }
    form {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .creation-container {
        padding: 15px;
    }

    .creation-item {
        width: 100%;
    }
}
