/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Header fou et text en rotation */
.header-crazy {
    background-color: #ff6600;
    padding: 30px;
    text-align: center;
    animation: headerShake 2s infinite ease-in-out;
}

#titre {
    font-size: 48px;
    color: #fff;
    animation: spinText 3s linear infinite;
}

#contact {
    font-size: 18px;
    color: #fff;
    margin-top: 10px;
    animation: slideInTop 2s ease;
}

.email {
    color: #ffcc00;
}

/* Menu de navigation dynamique */
.crazy-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 20px;
}

.crazy-menu ul li {
    margin: 0 20px;
}

.crazy-menu ul li a {
    color: #fff;
    background-color: #ff6600;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 20px;
    transition: transform 0.3s, background-color 0.3s;
    animation: pulseLink 1.5s infinite ease-in-out;
}

.crazy-menu ul li a:hover {
    background-color: #ffcc00;
    transform: scale(1.1) rotate(5deg);
}

/* Contenu en diagonale */
.diagonal-content {
    transform: rotate(-10deg);
    text-align: center;
    padding: 50px 20px;
}

.diagonal-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    animation: diagonalFade 2s ease;
}

.shake-image {
    max-width: 80%;
    margin: 20px auto;
    animation: shakeImage 1.5s infinite;
}

/* Footer pop-up */
.footer-pop {
    background-color: #ff6600;
    padding: 20px;
    text-align: center;
    color: #fff;
    animation: footerPop 1.5s infinite ease-in-out;
}

/* Animations */
@keyframes headerShake {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

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

@keyframes slideInTop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes pulseLink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes diagonalFade {
    from { opacity: 0; transform: rotate(-10deg); }
    to { opacity: 1; transform: rotate(-10deg); }
}

@keyframes shakeImage {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

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

/* Responsive pour mobile */
@media (max-width: 768px) {
    .crazy-menu ul {
        flex-direction: column;
    }

    .crazy-menu ul li {
        margin-bottom: 10px;
    }

    .diagonal-content {
        transform: rotate(0deg);
    }

    .diagonal-text {
        font-size: 18px;
    }

    .shake-image {
        max-width: 90%;
    }

    #titre {
        font-size: 36px;
    }
}
