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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Style pour l'en-tête avec bords droits */
header {
    background-color: #37474f;
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 10px solid #d32f2f;
}

header h1 {
    margin: 0;
    font-size: 30px;
}

header p {
    margin-top: 10px;
    font-size: 16px;
    color: #ffccbc;
}

/* Style pour la navigation carrée */
nav {
    background-color: #d32f2f;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    margin: 0 10px;
    background-color: #37474f;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border: 4px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav a:hover {
    background-color: #455a64;
    border-color: #ff5252;
}

/* Style pour le contenu */
.content {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #d32f2f;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Style pour les blocs carrés */
.square-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

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

.square-item:hover {
    transform: translateY(-10px);
}

.square-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.square-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #d32f2f;
}

.square-item p {
    font-size: 16px;
    color: #666;
}

/* Animation d'angle dynamique sur hover */
.square-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: #ff5252;
    transition: all 0.3s ease;
}

.square-item:hover::before {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 82, 82, 0.3);
}

/* Style pour le pied de page carré */
footer {
    background-color: #37474f;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    border-top: 10px solid #d32f2f;
}

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

    .content {
        padding: 30px 10px;
    }
}
