@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wrench {
    0% { transform: rotate(0) scale(1); }
    20%, 90% { transform: rotate(-15deg) scale(1.1); }
    30%, 80% { transform: rotate(15deg) scale(1.1); }
    40%, 70% { transform: rotate(-10deg) scale(1.05); }
    50%, 60% { transform: rotate(10deg) scale(1.05); }
    100% { transform: rotate(0) scale(1); }
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.maintenance {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #007bff, #28a745, #ffc107);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Bulles flottantes en arrière-plan */
.maintenance::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 10%),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 10%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 10%),
        radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.2) 0%, transparent 10%);
    animation: bounce 8s ease-in-out infinite alternate;
}

.maintenance__wrapper {
    max-width: 600px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    position: relative;
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 3px solid #fff;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 15px rgba(255, 255, 255, 0.2);
}

.maintenance__wrapper:hover {
    transform: scale(1.02);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.maintenance__icon {
    font-size: 5rem;
    color: #007bff;
    margin-bottom: 2rem;
    animation: wrench 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    transform-origin: center;
}

.maintenance__icon:hover {
    animation: wrench 1s ease infinite;
}

.maintenance__content {
    margin-top: 1rem;
}

.maintenance__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.maintenance__title:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.maintenance__message {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.maintenance__message:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.maintenance__refresh-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(255, 255, 255, 0.8);
}

.maintenance__refresh-btn i {
    transition: transform 0.3s ease;
}

.maintenance__refresh-btn:hover {
    color: #fff;
    transform: scale(1.1) rotate(-2deg);
    background: linear-gradient(135deg, #0066cc, #004499);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(255, 255, 255, 0.9);
}

.maintenance__refresh-btn:hover i {
    transform: rotate(180deg);
}

.maintenance__refresh-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .maintenance {
        padding: 1.5rem;
    }

    .maintenance__wrapper {
        width: 95%;
        padding: 2rem;
    }

    .maintenance__title {
        font-size: 2rem;
    }

    .maintenance__icon {
        font-size: 4rem;
    }

    .maintenance__message {
        font-size: 1.1rem;
    }

    .maintenance__refresh-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}