


body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("assets/scrs/image.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}



.container {
    max-width: 600px;
    width: 100%;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    margin-bottom: 30px;
}

.card {
    --shadow-spread: 10px;
    --shadow-opacity: 0.8;
    background: linear-gradient(135deg, #e2cc3c, #d062df);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 10px 10px var(--shadow-spread) rgba(0, 0, 0, var(--shadow-opacity));
    border: 2px solid #ffd700;
    animation: pulse 2s infinite;
    transition: box-shadow 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

input[type="text"],
input[type="number"],
input[type="email"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    transition: transform 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    transform: scale(1.02);
}

input[type="submit"] {
    background: #28a745;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

input[type="submit"]:hover {
    background: #218838;
    transform: translateY(-2px);
}

.message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Styles pour la page de gestion */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 95%;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background: #e2cc3c;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #f0f0f0;
}

/* Style pour le bouton de retour */
.button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 8px;
    transition: background 0.3s, transform 0.2s;
}

.button:hover {
    background: #218838;
    transform: translateY(-2px);
}

#edit_message {
    resize: none;
    margin: 0 auto;
    width: 95%;
    display: block;
}

/* Style pour les images décoratives transparentes */
.deco-image {
    position: fixed;
    z-index: 3;
    max-width: 200px;
    opacity: 0.8;
}

.deco-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.deco-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.heart-explosion {
    position: fixed;
    transform: translate(-50%, -50%);
}

/* Style des particules en forme de cœur */
.heart-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: red; /* Couleur des cœurs */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: explode var(--duration) ease-out forwards;
    transform: scale(var(--scale));
}

/* Animation pour disperser et faire disparaître les cœurs */
@keyframes explode {
    0% {
        transform: translate(0, 0) scale(var(--scale));
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(var(--scale));
        opacity: 0;
    }
}