/* Global Styles */
body {
    font-family: 'Comic Sans MS', sans-serif;
    background-color: #f9fbe7; /* Vert pastel pour une ambiance joyeuse */
    margin: 0;
    padding: 0;
}

header {
    background-color: #ff5722; /* Orange vif */
    color: white;
    padding: 20px;
    text-align: center;
    animation: shake 0.3s infinite alternate; /* Effet de secousse */
}

@keyframes shake {
    0% { transform: translateX(0); }
    100% { transform: translateX(10px); }
}

.header-content h1 {
    font-size: 3.5rem;
    margin: 0;
    animation: bounce 2s infinite; /* Texte qui rebondit */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.phone-number {
    font-size: 1.6rem;
    margin: 10px 0;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #03a9f4; /* Bleu dynamique */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

nav ul li a:hover {
    background-color: #0288d1;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

/* Main Content */
main {
    padding: 40px;
    text-align: center;
}

.hero, .about, .services, .contact {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero h2, .about h2, .services h2, .contact h2 {
    font-size: 2.8rem;
    color: #ff5722;
    animation: fadeIn 2s ease-out; /* Animation d'apparition */
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.bounce-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.bounce-img {
    width: 100%;
    height: 100%;
    animation: bounce-img 2s infinite ease-in-out; /* Image qui rebondit */
}

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

.rotate-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

.rotate-img {
    width: 100%;
    height: 100%;
    animation: rotate-img 5s linear infinite; /* Image qui tourne */
}

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

/* Call-to-action Button */
.cta-button {
    background-color: #ff5722;
    color: white;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #e64a19;
    transition: background-color 0.3s ease;
}

/* Footer */
footer {
    background-color: #ff5722;
    color: white;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .phone-number {
        font-size: 1.3rem;
    }

    .cta-button {
        font-size: 1.2rem;
    }
}
