/* Reset pour harmoniser le style entre les navigateurs */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Verdana', sans-serif;
    background-color: #f3f4f6;
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Style pour l'en-tête du site avec animation de haut en bas */
header {
    background-color: #8e44ad;
    color: white;
    padding: 60px 20px;
    text-align: center;
    animation: slideDown 2s ease-out;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 36px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
}

header p {
    margin-top: 10px;
    font-size: 18px;
    color: #f3e5f5;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

/* Animation d'arrivée de haut en bas */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation avec des animations de gauche à droite */
nav {
    background-color: #27ae60;
    padding: 20px;
    text-align: center;
    animation: slideLeft 1.5s ease-in;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    margin: 0 15px;
    background-color: #2980b9;
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    border: 3px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s;
}

nav a:hover {
    background-color: #3498db;
    border-color: #f39c12;
    transform: scale(1.1);
}

@keyframes slideLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Style pour le contenu avec animation d'apparition de droite à gauche */
.content {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 50px;
    animation: slideRight 1.5s ease-out;
}

.content h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #27ae60;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Arial', sans-serif;
}

@keyframes slideRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Style pour les blocs carrés avec des animations de zoom */
.square-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    transform: rotate(0deg);
}

.square-item {
    background-color: white;
    border: 4px solid #f39c12;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
}

.square-item:hover {
    transform: scale(1.05) rotate(5deg);
}

.square-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    animation: rotateZoom 2s infinite;
}

.square-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #d35400;
    font-family: 'Verdana', sans-serif;
}

.square-item p {
    font-size: 16px;
    color: #666;
    font-family: 'Verdana', sans-serif;
}

/* Animation infinie des images */
@keyframes rotateZoom {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Style pour le pied de page */
footer {
    background-color: #2980b9;
    color: white;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    position: relative;
    animation: slideUp 2s ease-in;
}

@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    nav a {
        display: block;
        margin: 10px 0;
    }

    .content {
        padding: 30px 10px;
    }

    .square-item {
        padding: 20px;
    }
}
