/* Général */
body {
    font-family: 'Arial', sans-serif;
    background-color: #F0F0F0;
    color: #333333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: url('images/centre.jpg'); /* Chemin vers l'image de votre centre */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    background-color: rgba(255, 255, 255, 0.8); /* Couleur de l'overlay avec transparence */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Placer l'overlay derrière le contenu */
}

a {
    text-decoration: none;
    color: #0072BC;
}

a:hover {
    text-decoration: underline;
}

/* En-tête */
header {
    background-color: rgba(0, 51, 102, 0.8); /* Fond avec transparence */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-family: 'Georgia', serif;
    font-size: 36px;
}

header .logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    font-size: 18px;
}

nav ul li a:hover {
    color: #669933;
}

/* Contenu principal */
main {
    padding: 40px 20px;
    background-color: rgba(240, 240, 240, 0.8); /* Fond avec transparence */
}

section {
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.9); /* Fond avec transparence */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-family: 'Roboto', serif;
    font-size: 28px;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Grille */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0;
}

.grid-item {
    background-color: rgba(169, 169, 169, 0.8); /* Fond gris moyen avec transparence */
    padding: 20px;
    border: 1px solid #333333; /* Bordure gris foncé */
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre subtile */
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(128, 128, 128, 0.9); /* Fond plus foncé au survol */
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.grid-item a {
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF; /* Texte blanc */
}

.grid-item a:hover {
    color: #0072BC; /* Couleur de survol */
}

/* Pied de page */
footer {
    background-color: rgba(0, 51, 102, 0.8); /* Fond avec transparence */
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    width: 100%;
    bottom: 0;
}

footer p {
    margin: 0;
}
